diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-01 08:47:44 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-05-01 08:47:44 -0700 | 
| commit | bf61c8840efe60fd8f91446860b63338fb424158 (patch) | |
| tree | 7a71832407a4f0d6346db773343f4c3ae2257b19 /drivers/pci/hotplug/acpiphp_core.c | |
| parent | 5846115b30f3a881e542c8bfde59a699c1c13740 (diff) | |
| parent | 0c6a61657da78098472fd0eb71cc01f2387fa1bb (diff) | |
| download | olio-linux-3.10-bf61c8840efe60fd8f91446860b63338fb424158.tar.xz olio-linux-3.10-bf61c8840efe60fd8f91446860b63338fb424158.zip  | |
Merge branch 'next' into for-linus
Prepare first set of updates for 3.10 merge window.
Diffstat (limited to 'drivers/pci/hotplug/acpiphp_core.c')
| -rw-r--r-- | drivers/pci/hotplug/acpiphp_core.c | 23 | 
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c index 96316b74969..c2fd3095701 100644 --- a/drivers/pci/hotplug/acpiphp_core.c +++ b/drivers/pci/hotplug/acpiphp_core.c @@ -50,7 +50,6 @@  bool acpiphp_debug;  /* local variables */ -static int num_slots;  static struct acpiphp_attention_info *attention_info;  #define DRIVER_VERSION	"0.5" @@ -272,25 +271,6 @@ static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)  	return 0;  } -static int __init init_acpi(void) -{ -	int retval; - -	/* initialize internal data structure etc. */ -	retval = acpiphp_glue_init(); - -	/* read initial number of slots */ -	if (!retval) { -		num_slots = acpiphp_get_num_slots(); -		if (num_slots == 0) { -			acpiphp_glue_exit(); -			retval = -ENODEV; -		} -	} - -	return retval; -} -  /**   * release_slot - free up the memory used by a slot   * @hotplug_slot: slot to free @@ -379,7 +359,8 @@ static int __init acpiphp_init(void)  		return 0;  	/* read all the ACPI info from the system */ -	return init_acpi(); +	/* initialize internal data structure etc. */ +	return acpiphp_glue_init();  }  |