aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/toshiba_acpi.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:18:33 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:03 -0500
commitb859f15921321b7bf4cb4cf188e31a6a25d2dff3 (patch)
tree551312f637cc2c27959f89742b1ee28baa4a46c7 /drivers/platform/x86/toshiba_acpi.c
parent4c62e9764ab403d42f9b8871b1241fe7812f19d4 (diff)
Drivers: platform: x86: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Joey Lee <jlee@novell.com> Cc: Matthew Garrett <mjg@redhat.com> Cc: Peter Feuerer <peter@piie.net> Cc: Corentin Chary <corentin.chary@gmail.com> Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Cc: Robert Gerlach <khnz@gmx.de> Cc: Ike Panhc <ike.pan@canonical.com> Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/platform/x86/toshiba_acpi.c')
-rw-r--r--drivers/platform/x86/toshiba_acpi.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index 5f1256d5e933..c2727895794c 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -150,7 +150,7 @@ static const struct acpi_device_id toshiba_device_ids[] = {
150}; 150};
151MODULE_DEVICE_TABLE(acpi, toshiba_device_ids); 151MODULE_DEVICE_TABLE(acpi, toshiba_device_ids);
152 152
153static const struct key_entry toshiba_acpi_keymap[] __devinitconst = { 153static const struct key_entry toshiba_acpi_keymap[] = {
154 { KE_KEY, 0x101, { KEY_MUTE } }, 154 { KE_KEY, 0x101, { KEY_MUTE } },
155 { KE_KEY, 0x102, { KEY_ZOOMOUT } }, 155 { KE_KEY, 0x102, { KEY_ZOOMOUT } },
156 { KE_KEY, 0x103, { KEY_ZOOMIN } }, 156 { KE_KEY, 0x103, { KEY_ZOOMIN } },
@@ -875,8 +875,7 @@ static const struct file_operations version_proc_fops = {
875 875
876#define PROC_TOSHIBA "toshiba" 876#define PROC_TOSHIBA "toshiba"
877 877
878static void __devinit 878static void create_toshiba_proc_entries(struct toshiba_acpi_dev *dev)
879create_toshiba_proc_entries(struct toshiba_acpi_dev *dev)
880{ 879{
881 if (dev->backlight_dev) 880 if (dev->backlight_dev)
882 proc_create_data("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir, 881 proc_create_data("lcd", S_IRUGO | S_IWUSR, toshiba_proc_dir,
@@ -979,7 +978,7 @@ static void toshiba_acpi_report_hotkey(struct toshiba_acpi_dev *dev,
979 pr_info("Unknown key %x\n", scancode); 978 pr_info("Unknown key %x\n", scancode);
980} 979}
981 980
982static int __devinit toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev) 981static int toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev)
983{ 982{
984 acpi_status status; 983 acpi_status status;
985 acpi_handle ec_handle, handle; 984 acpi_handle ec_handle, handle;
@@ -1069,7 +1068,7 @@ static int __devinit toshiba_acpi_setup_keyboard(struct toshiba_acpi_dev *dev)
1069 return error; 1068 return error;
1070} 1069}
1071 1070
1072static int __devinit toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) 1071static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev)
1073{ 1072{
1074 struct backlight_properties props; 1073 struct backlight_properties props;
1075 int brightness; 1074 int brightness;
@@ -1154,7 +1153,7 @@ static int toshiba_acpi_remove(struct acpi_device *acpi_dev, int type)
1154 return 0; 1153 return 0;
1155} 1154}
1156 1155
1157static const char * __devinit find_hci_method(acpi_handle handle) 1156static const char *find_hci_method(acpi_handle handle)
1158{ 1157{
1159 acpi_status status; 1158 acpi_status status;
1160 acpi_handle hci_handle; 1159 acpi_handle hci_handle;
@@ -1170,7 +1169,7 @@ static const char * __devinit find_hci_method(acpi_handle handle)
1170 return NULL; 1169 return NULL;
1171} 1170}
1172 1171
1173static int __devinit toshiba_acpi_add(struct acpi_device *acpi_dev) 1172static int toshiba_acpi_add(struct acpi_device *acpi_dev)
1174{ 1173{
1175 struct toshiba_acpi_dev *dev; 1174 struct toshiba_acpi_dev *dev;
1176 const char *hci_method; 1175 const char *hci_method;