diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-27 15:59:38 -0500 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-12-22 14:13:45 -0500 |
commit | 0b255e927d47b550620dfd3475ee74b0f52e09c8 (patch) | |
tree | 79927f5e46b3a196f90c2b93494bb88c35ad06ea /drivers/i2c/busses/i2c-i801.c | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) |
i2c: remove __dev* attributes from subsystem
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.
Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com> (for ocores and mux-gpio)
Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com> (for i2c-gpio)
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> (for puf3)
Acked-by: Barry Song <baohua.song@csr.com> (for sirf)
Reviewed-by: Jean Delvare <khali@linux-fr.org>
[wsa: Fixed "foo* bar" flaws while we are here]
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 1e73638225e1..3092387f6ef4 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c | |||
@@ -841,14 +841,14 @@ struct dmi_onboard_device_info { | |||
841 | const char *i2c_type; | 841 | const char *i2c_type; |
842 | }; | 842 | }; |
843 | 843 | ||
844 | static struct dmi_onboard_device_info __devinitdata dmi_devices[] = { | 844 | static const struct dmi_onboard_device_info dmi_devices[] = { |
845 | { "Syleus", DMI_DEV_TYPE_OTHER, 0x73, "fscsyl" }, | 845 | { "Syleus", DMI_DEV_TYPE_OTHER, 0x73, "fscsyl" }, |
846 | { "Hermes", DMI_DEV_TYPE_OTHER, 0x73, "fscher" }, | 846 | { "Hermes", DMI_DEV_TYPE_OTHER, 0x73, "fscher" }, |
847 | { "Hades", DMI_DEV_TYPE_OTHER, 0x73, "fschds" }, | 847 | { "Hades", DMI_DEV_TYPE_OTHER, 0x73, "fschds" }, |
848 | }; | 848 | }; |
849 | 849 | ||
850 | static void __devinit dmi_check_onboard_device(u8 type, const char *name, | 850 | static void dmi_check_onboard_device(u8 type, const char *name, |
851 | struct i2c_adapter *adap) | 851 | struct i2c_adapter *adap) |
852 | { | 852 | { |
853 | int i; | 853 | int i; |
854 | struct i2c_board_info info; | 854 | struct i2c_board_info info; |
@@ -871,8 +871,7 @@ static void __devinit dmi_check_onboard_device(u8 type, const char *name, | |||
871 | /* We use our own function to check for onboard devices instead of | 871 | /* We use our own function to check for onboard devices instead of |
872 | dmi_find_device() as some buggy BIOS's have the devices we are interested | 872 | dmi_find_device() as some buggy BIOS's have the devices we are interested |
873 | in marked as disabled */ | 873 | in marked as disabled */ |
874 | static void __devinit dmi_check_onboard_devices(const struct dmi_header *dm, | 874 | static void dmi_check_onboard_devices(const struct dmi_header *dm, void *adap) |
875 | void *adap) | ||
876 | { | 875 | { |
877 | int i, count; | 876 | int i, count; |
878 | 877 | ||
@@ -901,7 +900,7 @@ static void __devinit dmi_check_onboard_devices(const struct dmi_header *dm, | |||
901 | } | 900 | } |
902 | 901 | ||
903 | /* Register optional slaves */ | 902 | /* Register optional slaves */ |
904 | static void __devinit i801_probe_optional_slaves(struct i801_priv *priv) | 903 | static void i801_probe_optional_slaves(struct i801_priv *priv) |
905 | { | 904 | { |
906 | /* Only register slaves on main SMBus channel */ | 905 | /* Only register slaves on main SMBus channel */ |
907 | if (priv->features & FEATURE_IDF) | 906 | if (priv->features & FEATURE_IDF) |
@@ -921,7 +920,7 @@ static void __devinit i801_probe_optional_slaves(struct i801_priv *priv) | |||
921 | } | 920 | } |
922 | #else | 921 | #else |
923 | static void __init input_apanel_init(void) {} | 922 | static void __init input_apanel_init(void) {} |
924 | static void __devinit i801_probe_optional_slaves(struct i801_priv *priv) {} | 923 | static void i801_probe_optional_slaves(struct i801_priv *priv) {} |
925 | #endif /* CONFIG_X86 && CONFIG_DMI */ | 924 | #endif /* CONFIG_X86 && CONFIG_DMI */ |
926 | 925 | ||
927 | #if (defined CONFIG_I2C_MUX_GPIO || defined CONFIG_I2C_MUX_GPIO_MODULE) && \ | 926 | #if (defined CONFIG_I2C_MUX_GPIO || defined CONFIG_I2C_MUX_GPIO_MODULE) && \ |
@@ -944,7 +943,7 @@ static struct i801_mux_config i801_mux_config_asus_z8_d18 = { | |||
944 | .n_gpios = 2, | 943 | .n_gpios = 2, |
945 | }; | 944 | }; |
946 | 945 | ||
947 | static struct dmi_system_id __devinitdata mux_dmi_table[] = { | 946 | static const struct dmi_system_id mux_dmi_table[] = { |
948 | { | 947 | { |
949 | .matches = { | 948 | .matches = { |
950 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), | 949 | DMI_MATCH(DMI_BOARD_VENDOR, "ASUSTeK Computer INC."), |
@@ -1012,7 +1011,7 @@ static struct dmi_system_id __devinitdata mux_dmi_table[] = { | |||
1012 | }; | 1011 | }; |
1013 | 1012 | ||
1014 | /* Setup multiplexing if needed */ | 1013 | /* Setup multiplexing if needed */ |
1015 | static int __devinit i801_add_mux(struct i801_priv *priv) | 1014 | static int i801_add_mux(struct i801_priv *priv) |
1016 | { | 1015 | { |
1017 | struct device *dev = &priv->adapter.dev; | 1016 | struct device *dev = &priv->adapter.dev; |
1018 | const struct i801_mux_config *mux_config; | 1017 | const struct i801_mux_config *mux_config; |
@@ -1048,13 +1047,13 @@ static int __devinit i801_add_mux(struct i801_priv *priv) | |||
1048 | return 0; | 1047 | return 0; |
1049 | } | 1048 | } |
1050 | 1049 | ||
1051 | static void __devexit i801_del_mux(struct i801_priv *priv) | 1050 | static void i801_del_mux(struct i801_priv *priv) |
1052 | { | 1051 | { |
1053 | if (priv->mux_pdev) | 1052 | if (priv->mux_pdev) |
1054 | platform_device_unregister(priv->mux_pdev); | 1053 | platform_device_unregister(priv->mux_pdev); |
1055 | } | 1054 | } |
1056 | 1055 | ||
1057 | static unsigned int __devinit i801_get_adapter_class(struct i801_priv *priv) | 1056 | static unsigned int i801_get_adapter_class(struct i801_priv *priv) |
1058 | { | 1057 | { |
1059 | const struct dmi_system_id *id; | 1058 | const struct dmi_system_id *id; |
1060 | const struct i801_mux_config *mux_config; | 1059 | const struct i801_mux_config *mux_config; |
@@ -1084,8 +1083,7 @@ static inline unsigned int i801_get_adapter_class(struct i801_priv *priv) | |||
1084 | } | 1083 | } |
1085 | #endif | 1084 | #endif |
1086 | 1085 | ||
1087 | static int __devinit i801_probe(struct pci_dev *dev, | 1086 | static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) |
1088 | const struct pci_device_id *id) | ||
1089 | { | 1087 | { |
1090 | unsigned char temp; | 1088 | unsigned char temp; |
1091 | int err, i; | 1089 | int err, i; |
@@ -1226,7 +1224,7 @@ exit: | |||
1226 | return err; | 1224 | return err; |
1227 | } | 1225 | } |
1228 | 1226 | ||
1229 | static void __devexit i801_remove(struct pci_dev *dev) | 1227 | static void i801_remove(struct pci_dev *dev) |
1230 | { | 1228 | { |
1231 | struct i801_priv *priv = pci_get_drvdata(dev); | 1229 | struct i801_priv *priv = pci_get_drvdata(dev); |
1232 | 1230 | ||
@@ -1272,7 +1270,7 @@ static struct pci_driver i801_driver = { | |||
1272 | .name = "i801_smbus", | 1270 | .name = "i801_smbus", |
1273 | .id_table = i801_ids, | 1271 | .id_table = i801_ids, |
1274 | .probe = i801_probe, | 1272 | .probe = i801_probe, |
1275 | .remove = __devexit_p(i801_remove), | 1273 | .remove = i801_remove, |
1276 | .suspend = i801_suspend, | 1274 | .suspend = i801_suspend, |
1277 | .resume = i801_resume, | 1275 | .resume = i801_resume, |
1278 | }; | 1276 | }; |