diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2012-12-07 11:57:14 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-12-07 12:06:43 -0500 |
commit | fd4a319bc933ae93e68935b21924a9ca4ba2d060 (patch) | |
tree | 6c813c841e056164fe22bd91a4cd2295028d497d /drivers/spi/spi-fsl-spi.c | |
parent | 7730cba2a50332c194f50a58b86359ea39a82bd1 (diff) |
spi: Remove HOTPLUG section attributes
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.
Bill Pemberton has done most of the legwork on this series. I've used
his script to purge the attributes from the drivers/gpio tree.
Reported-by: Bill Pemberton <wfp5p@virginia.edu>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-fsl-spi.c')
-rw-r--r-- | drivers/spi/spi-fsl-spi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 6a62934ca74c..1a7f6359d998 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
@@ -843,7 +843,7 @@ static void fsl_spi_remove(struct mpc8xxx_spi *mspi) | |||
843 | fsl_spi_cpm_free(mspi); | 843 | fsl_spi_cpm_free(mspi); |
844 | } | 844 | } |
845 | 845 | ||
846 | static struct spi_master * __devinit fsl_spi_probe(struct device *dev, | 846 | static struct spi_master * fsl_spi_probe(struct device *dev, |
847 | struct resource *mem, unsigned int irq) | 847 | struct resource *mem, unsigned int irq) |
848 | { | 848 | { |
849 | struct fsl_spi_platform_data *pdata = dev->platform_data; | 849 | struct fsl_spi_platform_data *pdata = dev->platform_data; |
@@ -1041,7 +1041,7 @@ static int of_fsl_spi_free_chipselects(struct device *dev) | |||
1041 | return 0; | 1041 | return 0; |
1042 | } | 1042 | } |
1043 | 1043 | ||
1044 | static int __devinit of_fsl_spi_probe(struct platform_device *ofdev) | 1044 | static int of_fsl_spi_probe(struct platform_device *ofdev) |
1045 | { | 1045 | { |
1046 | struct device *dev = &ofdev->dev; | 1046 | struct device *dev = &ofdev->dev; |
1047 | struct device_node *np = ofdev->dev.of_node; | 1047 | struct device_node *np = ofdev->dev.of_node; |
@@ -1081,7 +1081,7 @@ err: | |||
1081 | return ret; | 1081 | return ret; |
1082 | } | 1082 | } |
1083 | 1083 | ||
1084 | static int __devexit of_fsl_spi_remove(struct platform_device *ofdev) | 1084 | static int of_fsl_spi_remove(struct platform_device *ofdev) |
1085 | { | 1085 | { |
1086 | int ret; | 1086 | int ret; |
1087 | 1087 | ||
@@ -1105,7 +1105,7 @@ static struct platform_driver of_fsl_spi_driver = { | |||
1105 | .of_match_table = of_fsl_spi_match, | 1105 | .of_match_table = of_fsl_spi_match, |
1106 | }, | 1106 | }, |
1107 | .probe = of_fsl_spi_probe, | 1107 | .probe = of_fsl_spi_probe, |
1108 | .remove = __devexit_p(of_fsl_spi_remove), | 1108 | .remove = of_fsl_spi_remove, |
1109 | }; | 1109 | }; |
1110 | 1110 | ||
1111 | #ifdef CONFIG_MPC832x_RDB | 1111 | #ifdef CONFIG_MPC832x_RDB |
@@ -1116,7 +1116,7 @@ static struct platform_driver of_fsl_spi_driver = { | |||
1116 | * tree can work with OpenFirmware driver. But for now we support old trees | 1116 | * tree can work with OpenFirmware driver. But for now we support old trees |
1117 | * as well. | 1117 | * as well. |
1118 | */ | 1118 | */ |
1119 | static int __devinit plat_mpc8xxx_spi_probe(struct platform_device *pdev) | 1119 | static int plat_mpc8xxx_spi_probe(struct platform_device *pdev) |
1120 | { | 1120 | { |
1121 | struct resource *mem; | 1121 | struct resource *mem; |
1122 | int irq; | 1122 | int irq; |
@@ -1139,7 +1139,7 @@ static int __devinit plat_mpc8xxx_spi_probe(struct platform_device *pdev) | |||
1139 | return 0; | 1139 | return 0; |
1140 | } | 1140 | } |
1141 | 1141 | ||
1142 | static int __devexit plat_mpc8xxx_spi_remove(struct platform_device *pdev) | 1142 | static int plat_mpc8xxx_spi_remove(struct platform_device *pdev) |
1143 | { | 1143 | { |
1144 | return mpc8xxx_spi_remove(&pdev->dev); | 1144 | return mpc8xxx_spi_remove(&pdev->dev); |
1145 | } | 1145 | } |
@@ -1147,7 +1147,7 @@ static int __devexit plat_mpc8xxx_spi_remove(struct platform_device *pdev) | |||
1147 | MODULE_ALIAS("platform:mpc8xxx_spi"); | 1147 | MODULE_ALIAS("platform:mpc8xxx_spi"); |
1148 | static struct platform_driver mpc8xxx_spi_driver = { | 1148 | static struct platform_driver mpc8xxx_spi_driver = { |
1149 | .probe = plat_mpc8xxx_spi_probe, | 1149 | .probe = plat_mpc8xxx_spi_probe, |
1150 | .remove = __devexit_p(plat_mpc8xxx_spi_remove), | 1150 | .remove = plat_mpc8xxx_spi_remove, |
1151 | .driver = { | 1151 | .driver = { |
1152 | .name = "mpc8xxx_spi", | 1152 | .name = "mpc8xxx_spi", |
1153 | .owner = THIS_MODULE, | 1153 | .owner = THIS_MODULE, |