diff options
| author | David S. Miller <davem@davemloft.net> | 2010-04-06 23:53:30 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-04-06 23:53:30 -0700 | 
| commit | 4a35ecf8bf1c4b039503fa554100fe85c761de76 (patch) | |
| tree | 9b75f5d5636004d9a9aa496924377379be09aa1f /drivers/platform/x86/toshiba_acpi.c | |
| parent | b4d562e3c3553ac58c7120555c4e4aefbb090a2a (diff) | |
| parent | fb9e2d887243499b8d28efcf80821c4f6a092395 (diff) | |
| download | olio-linux-3.10-4a35ecf8bf1c4b039503fa554100fe85c761de76.tar.xz olio-linux-3.10-4a35ecf8bf1c4b039503fa554100fe85c761de76.zip  | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
	drivers/net/bonding/bond_main.c
	drivers/net/via-velocity.c
	drivers/net/wireless/iwlwifi/iwl-agn.c
Diffstat (limited to 'drivers/platform/x86/toshiba_acpi.c')
| -rw-r--r-- | drivers/platform/x86/toshiba_acpi.c | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 789240d1b57..def4841183b 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -924,6 +924,7 @@ static int __init toshiba_acpi_init(void)  	u32 hci_result;  	bool bt_present;  	int ret = 0; +	struct backlight_properties props;  	if (acpi_disabled)  		return -ENODEV; @@ -974,10 +975,12 @@ static int __init toshiba_acpi_init(void)  		}  	} +	props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1;  	toshiba_backlight_device = backlight_device_register("toshiba", -						&toshiba_acpi.p_dev->dev, -						NULL, -						&toshiba_backlight_data); +							     &toshiba_acpi.p_dev->dev, +							     NULL, +							     &toshiba_backlight_data, +							     &props);          if (IS_ERR(toshiba_backlight_device)) {  		ret = PTR_ERR(toshiba_backlight_device); @@ -986,7 +989,6 @@ static int __init toshiba_acpi_init(void)  		toshiba_acpi_exit();  		return ret;  	} -        toshiba_backlight_device->props.max_brightness = HCI_LCD_BRIGHTNESS_LEVELS - 1;  	/* Register rfkill switch for Bluetooth */  	if (hci_get_bt_present(&bt_present) == HCI_SUCCESS && bt_present) {  |