diff options
| author | Thomas Gleixner <tglx@tglx.tec.linutronix.de> | 2005-07-13 10:45:00 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-07-13 10:45:00 +0200 | 
| commit | 1b3035b7fcc72b6b36f2a3634dad832eb2453ce8 (patch) | |
| tree | 728174d72943cc9b981a5843553551df62eddc41 /drivers/acpi/ibm_acpi.c | |
| parent | a98a5d04f400ad112e59cadd739dbabf89417e60 (diff) | |
| parent | c32511e2718618f0b53479eb36e07439aa363a74 (diff) | |
Merge with rsync://fileserver/linux
Diffstat (limited to 'drivers/acpi/ibm_acpi.c')
| -rw-r--r-- | drivers/acpi/ibm_acpi.c | 8 | 
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c index 0fb731a470dc..ad85e10001f4 100644 --- a/drivers/acpi/ibm_acpi.c +++ b/drivers/acpi/ibm_acpi.c @@ -1025,7 +1025,7 @@ static int setup_notify(struct ibm_struct *ibm)  	return 0;  } -static int device_add(struct acpi_device *device) +static int ibmacpi_device_add(struct acpi_device *device)  {  	return 0;  } @@ -1043,7 +1043,7 @@ static int register_driver(struct ibm_struct *ibm)  	memset(ibm->driver, 0, sizeof(struct acpi_driver));  	sprintf(ibm->driver->name, "%s/%s", IBM_NAME, ibm->name);  	ibm->driver->ids = ibm->hid; -	ibm->driver->ops.add = &device_add; +	ibm->driver->ops.add = &ibmacpi_device_add;  	ret = acpi_bus_register_driver(ibm->driver);  	if (ret < 0) { @@ -1185,6 +1185,10 @@ static int __init acpi_ibm_init(void)  	if (acpi_disabled)  		return -ENODEV; +	if (!acpi_specific_hotkey_enabled){ +		printk(IBM_ERR "Using generic hotkey driver\n"); +		return -ENODEV;	 +	}  	/* these handles are required */  	if (IBM_HANDLE_INIT(ec,	  1) < 0 ||  	    IBM_HANDLE_INIT(hkey, 1) < 0 ||  | 
