diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 18:14:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:16 -0500 |
commit | 0fe763c570ad2701c830b9e4e53c65ad89c11c32 (patch) | |
tree | 88a648c1cbcda318507d339bf93f1b24af4ff4bf /drivers/bus | |
parent | 8d85fce77edfc22f1d6dbf78e3af723b4b556f3d (diff) |
Drivers: misc: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/omap-ocp2scp.c | 6 | ||||
-rw-r--r-- | drivers/bus/omap_l3_noc.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/bus/omap-ocp2scp.c b/drivers/bus/omap-ocp2scp.c index 0c48b0e05ed6..fe7191663bbd 100644 --- a/drivers/bus/omap-ocp2scp.c +++ b/drivers/bus/omap-ocp2scp.c | |||
@@ -52,7 +52,7 @@ static int ocp2scp_remove_devices(struct device *dev, void *c) | |||
52 | return 0; | 52 | return 0; |
53 | } | 53 | } |
54 | 54 | ||
55 | static int __devinit omap_ocp2scp_probe(struct platform_device *pdev) | 55 | static int omap_ocp2scp_probe(struct platform_device *pdev) |
56 | { | 56 | { |
57 | int ret; | 57 | int ret; |
58 | unsigned res_cnt, i; | 58 | unsigned res_cnt, i; |
@@ -116,7 +116,7 @@ err0: | |||
116 | return ret; | 116 | return ret; |
117 | } | 117 | } |
118 | 118 | ||
119 | static int __devexit omap_ocp2scp_remove(struct platform_device *pdev) | 119 | static int omap_ocp2scp_remove(struct platform_device *pdev) |
120 | { | 120 | { |
121 | pm_runtime_disable(&pdev->dev); | 121 | pm_runtime_disable(&pdev->dev); |
122 | device_for_each_child(&pdev->dev, NULL, ocp2scp_remove_devices); | 122 | device_for_each_child(&pdev->dev, NULL, ocp2scp_remove_devices); |
@@ -134,7 +134,7 @@ MODULE_DEVICE_TABLE(of, omap_ocp2scp_id_table); | |||
134 | 134 | ||
135 | static struct platform_driver omap_ocp2scp_driver = { | 135 | static struct platform_driver omap_ocp2scp_driver = { |
136 | .probe = omap_ocp2scp_probe, | 136 | .probe = omap_ocp2scp_probe, |
137 | .remove = __devexit_p(omap_ocp2scp_remove), | 137 | .remove = omap_ocp2scp_remove, |
138 | .driver = { | 138 | .driver = { |
139 | .name = "omap-ocp2scp", | 139 | .name = "omap-ocp2scp", |
140 | .owner = THIS_MODULE, | 140 | .owner = THIS_MODULE, |
diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index ab911a33f8a8..feeecae623f6 100644 --- a/drivers/bus/omap_l3_noc.c +++ b/drivers/bus/omap_l3_noc.c | |||
@@ -128,7 +128,7 @@ static irqreturn_t l3_interrupt_handler(int irq, void *_l3) | |||
128 | return IRQ_HANDLED; | 128 | return IRQ_HANDLED; |
129 | } | 129 | } |
130 | 130 | ||
131 | static int __devinit omap4_l3_probe(struct platform_device *pdev) | 131 | static int omap4_l3_probe(struct platform_device *pdev) |
132 | { | 132 | { |
133 | static struct omap4_l3 *l3; | 133 | static struct omap4_l3 *l3; |
134 | struct resource *res; | 134 | struct resource *res; |
@@ -219,7 +219,7 @@ err0: | |||
219 | return ret; | 219 | return ret; |
220 | } | 220 | } |
221 | 221 | ||
222 | static int __devexit omap4_l3_remove(struct platform_device *pdev) | 222 | static int omap4_l3_remove(struct platform_device *pdev) |
223 | { | 223 | { |
224 | struct omap4_l3 *l3 = platform_get_drvdata(pdev); | 224 | struct omap4_l3 *l3 = platform_get_drvdata(pdev); |
225 | 225 | ||
@@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, l3_noc_match); | |||
245 | 245 | ||
246 | static struct platform_driver omap4_l3_driver = { | 246 | static struct platform_driver omap4_l3_driver = { |
247 | .probe = omap4_l3_probe, | 247 | .probe = omap4_l3_probe, |
248 | .remove = __devexit_p(omap4_l3_remove), | 248 | .remove = omap4_l3_remove, |
249 | .driver = { | 249 | .driver = { |
250 | .name = "omap_l3_noc", | 250 | .name = "omap_l3_noc", |
251 | .owner = THIS_MODULE, | 251 | .owner = THIS_MODULE, |