aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 18:14:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:16 -0500
commit0fe763c570ad2701c830b9e4e53c65ad89c11c32 (patch)
tree88a648c1cbcda318507d339bf93f1b24af4ff4bf
parent8d85fce77edfc22f1d6dbf78e3af723b4b556f3d (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>
-rw-r--r--drivers/auxdisplay/cfag12864bfb.c10
-rw-r--r--drivers/bus/omap-ocp2scp.c6
-rw-r--r--drivers/bus/omap_l3_noc.c6
-rw-r--r--drivers/cdrom/gdrom.c18
-rw-r--r--drivers/clk/clk-twl6040.c6
-rw-r--r--drivers/clk/ux500/abx500-clk.c2
-rw-r--r--drivers/connector/connector.c4
-rw-r--r--drivers/devfreq/exynos4_bus.c6
-rw-r--r--drivers/firmware/dcdbas.c6
-rw-r--r--drivers/gpio/gpio-da9055.c8
-rw-r--r--drivers/gpio/gpio-ts5500.c6
-rw-r--r--drivers/gpio/gpio-viperboard.c6
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c12
-rw-r--r--drivers/hsi/clients/hsi_char.c8
-rw-r--r--drivers/hwmon/vexpress.c4
-rw-r--r--drivers/input/keyboard/tca8418_keypad.c2
-rw-r--r--drivers/nfc/pn544/i2c.c8
-rw-r--r--drivers/parisc/dino.c2
-rw-r--r--drivers/parisc/lba_pci.c2
-rw-r--r--drivers/pps/clients/pps-gpio.c2
-rw-r--r--drivers/ps3/ps3-lpm.c2
-rw-r--r--drivers/ps3/ps3-sys-manager.c2
-rw-r--r--drivers/ps3/ps3av.c2
-rw-r--r--drivers/remoteproc/omap_remoteproc.c6
-rw-r--r--drivers/rpmsg/virtio_rpmsg_bus.c4
-rw-r--r--drivers/sh/pfc/gpio.c6
-rw-r--r--drivers/sh/pfc/pinctrl.c20
-rw-r--r--drivers/sn/ioc3.c14
28 files changed, 88 insertions, 92 deletions
diff --git a/drivers/auxdisplay/cfag12864bfb.c b/drivers/auxdisplay/cfag12864bfb.c
index 5ad3bad2b0a5..d585735430dd 100644
--- a/drivers/auxdisplay/cfag12864bfb.c
+++ b/drivers/auxdisplay/cfag12864bfb.c
@@ -37,7 +37,7 @@
37 37
38#define CFAG12864BFB_NAME "cfag12864bfb" 38#define CFAG12864BFB_NAME "cfag12864bfb"
39 39
40static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = { 40static struct fb_fix_screeninfo cfag12864bfb_fix = {
41 .id = "cfag12864b", 41 .id = "cfag12864b",
42 .type = FB_TYPE_PACKED_PIXELS, 42 .type = FB_TYPE_PACKED_PIXELS,
43 .visual = FB_VISUAL_MONO10, 43 .visual = FB_VISUAL_MONO10,
@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
48 .accel = FB_ACCEL_NONE, 48 .accel = FB_ACCEL_NONE,
49}; 49};
50 50
51static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = { 51static struct fb_var_screeninfo cfag12864bfb_var = {
52 .xres = CFAG12864B_WIDTH, 52 .xres = CFAG12864B_WIDTH,
53 .yres = CFAG12864B_HEIGHT, 53 .yres = CFAG12864B_HEIGHT,
54 .xres_virtual = CFAG12864B_WIDTH, 54 .xres_virtual = CFAG12864B_WIDTH,
@@ -80,7 +80,7 @@ static struct fb_ops cfag12864bfb_ops = {
80 .fb_mmap = cfag12864bfb_mmap, 80 .fb_mmap = cfag12864bfb_mmap,
81}; 81};
82 82
83static int __devinit cfag12864bfb_probe(struct platform_device *device) 83static int cfag12864bfb_probe(struct platform_device *device)
84{ 84{
85 int ret = -EINVAL; 85 int ret = -EINVAL;
86 struct fb_info *info = framebuffer_alloc(0, &device->dev); 86 struct fb_info *info = framebuffer_alloc(0, &device->dev);
@@ -114,7 +114,7 @@ none:
114 return ret; 114 return ret;
115} 115}
116 116
117static int __devexit cfag12864bfb_remove(struct platform_device *device) 117static int cfag12864bfb_remove(struct platform_device *device)
118{ 118{
119 struct fb_info *info = platform_get_drvdata(device); 119 struct fb_info *info = platform_get_drvdata(device);
120 120
@@ -128,7 +128,7 @@ static int __devexit cfag12864bfb_remove(struct platform_device *device)
128 128
129static struct platform_driver cfag12864bfb_driver = { 129static struct platform_driver cfag12864bfb_driver = {
130 .probe = cfag12864bfb_probe, 130 .probe = cfag12864bfb_probe,
131 .remove = __devexit_p(cfag12864bfb_remove), 131 .remove = cfag12864bfb_remove,
132 .driver = { 132 .driver = {
133 .name = CFAG12864BFB_NAME, 133 .name = CFAG12864BFB_NAME,
134 }, 134 },
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
55static int __devinit omap_ocp2scp_probe(struct platform_device *pdev) 55static 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
119static int __devexit omap_ocp2scp_remove(struct platform_device *pdev) 119static 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
135static struct platform_driver omap_ocp2scp_driver = { 135static 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
131static int __devinit omap4_l3_probe(struct platform_device *pdev) 131static 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
222static int __devexit omap4_l3_remove(struct platform_device *pdev) 222static 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
246static struct platform_driver omap4_l3_driver = { 246static 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,
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
index 75d485afe56c..d59cdcb8fe39 100644
--- a/drivers/cdrom/gdrom.c
+++ b/drivers/cdrom/gdrom.c
@@ -557,7 +557,7 @@ static irqreturn_t gdrom_dma_interrupt(int irq, void *dev_id)
557 return IRQ_HANDLED; 557 return IRQ_HANDLED;
558} 558}
559 559
560static int __devinit gdrom_set_interrupt_handlers(void) 560static int gdrom_set_interrupt_handlers(void)
561{ 561{
562 int err; 562 int err;
563 563
@@ -681,7 +681,7 @@ static void gdrom_request(struct request_queue *rq)
681} 681}
682 682
683/* Print string identifying GD ROM device */ 683/* Print string identifying GD ROM device */
684static int __devinit gdrom_outputversion(void) 684static int gdrom_outputversion(void)
685{ 685{
686 struct gdrom_id *id; 686 struct gdrom_id *id;
687 char *model_name, *manuf_name, *firmw_ver; 687 char *model_name, *manuf_name, *firmw_ver;
@@ -715,7 +715,7 @@ free_id:
715} 715}
716 716
717/* set the default mode for DMA transfer */ 717/* set the default mode for DMA transfer */
718static int __devinit gdrom_init_dma_mode(void) 718static int gdrom_init_dma_mode(void)
719{ 719{
720 __raw_writeb(0x13, GDROM_ERROR_REG); 720 __raw_writeb(0x13, GDROM_ERROR_REG);
721 __raw_writeb(0x22, GDROM_INTSEC_REG); 721 __raw_writeb(0x22, GDROM_INTSEC_REG);
@@ -736,7 +736,7 @@ static int __devinit gdrom_init_dma_mode(void)
736 return 0; 736 return 0;
737} 737}
738 738
739static void __devinit probe_gdrom_setupcd(void) 739static void probe_gdrom_setupcd(void)
740{ 740{
741 gd.cd_info->ops = &gdrom_ops; 741 gd.cd_info->ops = &gdrom_ops;
742 gd.cd_info->capacity = 1; 742 gd.cd_info->capacity = 1;
@@ -745,7 +745,7 @@ static void __devinit probe_gdrom_setupcd(void)
745 CDC_SELECT_DISC; 745 CDC_SELECT_DISC;
746} 746}
747 747
748static void __devinit probe_gdrom_setupdisk(void) 748static void probe_gdrom_setupdisk(void)
749{ 749{
750 gd.disk->major = gdrom_major; 750 gd.disk->major = gdrom_major;
751 gd.disk->first_minor = 1; 751 gd.disk->first_minor = 1;
@@ -753,7 +753,7 @@ static void __devinit probe_gdrom_setupdisk(void)
753 strcpy(gd.disk->disk_name, GDROM_DEV_NAME); 753 strcpy(gd.disk->disk_name, GDROM_DEV_NAME);
754} 754}
755 755
756static int __devinit probe_gdrom_setupqueue(void) 756static int probe_gdrom_setupqueue(void)
757{ 757{
758 blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR); 758 blk_queue_logical_block_size(gd.gdrom_rq, GDROM_HARD_SECTOR);
759 /* using DMA so memory will need to be contiguous */ 759 /* using DMA so memory will need to be contiguous */
@@ -768,7 +768,7 @@ static int __devinit probe_gdrom_setupqueue(void)
768 * register this as a block device and as compliant with the 768 * register this as a block device and as compliant with the
769 * universal CD Rom driver interface 769 * universal CD Rom driver interface
770 */ 770 */
771static int __devinit probe_gdrom(struct platform_device *devptr) 771static int probe_gdrom(struct platform_device *devptr)
772{ 772{
773 int err; 773 int err;
774 /* Start the device */ 774 /* Start the device */
@@ -838,7 +838,7 @@ probe_fail_no_mem:
838 return err; 838 return err;
839} 839}
840 840
841static int __devexit remove_gdrom(struct platform_device *devptr) 841static int remove_gdrom(struct platform_device *devptr)
842{ 842{
843 flush_work(&work); 843 flush_work(&work);
844 blk_cleanup_queue(gd.gdrom_rq); 844 blk_cleanup_queue(gd.gdrom_rq);
@@ -854,7 +854,7 @@ static int __devexit remove_gdrom(struct platform_device *devptr)
854 854
855static struct platform_driver gdrom_driver = { 855static struct platform_driver gdrom_driver = {
856 .probe = probe_gdrom, 856 .probe = probe_gdrom,
857 .remove = __devexit_p(remove_gdrom), 857 .remove = remove_gdrom,
858 .driver = { 858 .driver = {
859 .name = GDROM_DEV_NAME, 859 .name = GDROM_DEV_NAME,
860 }, 860 },
diff --git a/drivers/clk/clk-twl6040.c b/drivers/clk/clk-twl6040.c
index bc1e713e7b9c..3af729b1b89d 100644
--- a/drivers/clk/clk-twl6040.c
+++ b/drivers/clk/clk-twl6040.c
@@ -78,7 +78,7 @@ static struct clk_init_data wm831x_clkout_init = {
78 .flags = CLK_IS_ROOT, 78 .flags = CLK_IS_ROOT,
79}; 79};
80 80
81static int __devinit twl6040_clk_probe(struct platform_device *pdev) 81static int twl6040_clk_probe(struct platform_device *pdev)
82{ 82{
83 struct twl6040 *twl6040 = dev_get_drvdata(pdev->dev.parent); 83 struct twl6040 *twl6040 = dev_get_drvdata(pdev->dev.parent);
84 struct twl6040_clk *clkdata; 84 struct twl6040_clk *clkdata;
@@ -100,7 +100,7 @@ static int __devinit twl6040_clk_probe(struct platform_device *pdev)
100 return 0; 100 return 0;
101} 101}
102 102
103static int __devexit twl6040_clk_remove(struct platform_device *pdev) 103static int twl6040_clk_remove(struct platform_device *pdev)
104{ 104{
105 struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev); 105 struct twl6040_clk *clkdata = dev_get_drvdata(&pdev->dev);
106 106
@@ -115,7 +115,7 @@ static struct platform_driver twl6040_clk_driver = {
115 .owner = THIS_MODULE, 115 .owner = THIS_MODULE,
116 }, 116 },
117 .probe = twl6040_clk_probe, 117 .probe = twl6040_clk_probe,
118 .remove = __devexit_p(twl6040_clk_remove), 118 .remove = twl6040_clk_remove,
119}; 119};
120 120
121module_platform_driver(twl6040_clk_driver); 121module_platform_driver(twl6040_clk_driver);
diff --git a/drivers/clk/ux500/abx500-clk.c b/drivers/clk/ux500/abx500-clk.c
index e27c52317ffe..9f7400d74fa7 100644
--- a/drivers/clk/ux500/abx500-clk.c
+++ b/drivers/clk/ux500/abx500-clk.c
@@ -34,7 +34,7 @@ static int ab9540_reg_clks(struct device *dev)
34 return 0; 34 return 0;
35} 35}
36 36
37static int __devinit abx500_clk_probe(struct platform_device *pdev) 37static int abx500_clk_probe(struct platform_device *pdev)
38{ 38{
39 struct ab8500 *parent = dev_get_drvdata(pdev->dev.parent); 39 struct ab8500 *parent = dev_get_drvdata(pdev->dev.parent);
40 int ret; 40 int ret;
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index 965b7811e04f..7b695913cb30 100644
--- a/drivers/connector/connector.c
+++ b/drivers/connector/connector.c
@@ -256,7 +256,7 @@ static struct cn_dev cdev = {
256 .input = cn_rx_skb, 256 .input = cn_rx_skb,
257}; 257};
258 258
259static int __devinit cn_init(void) 259static int cn_init(void)
260{ 260{
261 struct cn_dev *dev = &cdev; 261 struct cn_dev *dev = &cdev;
262 struct netlink_kernel_cfg cfg = { 262 struct netlink_kernel_cfg cfg = {
@@ -281,7 +281,7 @@ static int __devinit cn_init(void)
281 return 0; 281 return 0;
282} 282}
283 283
284static void __devexit cn_fini(void) 284static void cn_fini(void)
285{ 285{
286 struct cn_dev *dev = &cdev; 286 struct cn_dev *dev = &cdev;
287 287
diff --git a/drivers/devfreq/exynos4_bus.c b/drivers/devfreq/exynos4_bus.c
index 741837208716..80c745e83082 100644
--- a/drivers/devfreq/exynos4_bus.c
+++ b/drivers/devfreq/exynos4_bus.c
@@ -980,7 +980,7 @@ unlock:
980 return NOTIFY_DONE; 980 return NOTIFY_DONE;
981} 981}
982 982
983static __devinit int exynos4_busfreq_probe(struct platform_device *pdev) 983static int exynos4_busfreq_probe(struct platform_device *pdev)
984{ 984{
985 struct busfreq_data *data; 985 struct busfreq_data *data;
986 struct opp *opp; 986 struct opp *opp;
@@ -1056,7 +1056,7 @@ static __devinit int exynos4_busfreq_probe(struct platform_device *pdev)
1056 return 0; 1056 return 0;
1057} 1057}
1058 1058
1059static __devexit int exynos4_busfreq_remove(struct platform_device *pdev) 1059static int exynos4_busfreq_remove(struct platform_device *pdev)
1060{ 1060{
1061 struct busfreq_data *data = platform_get_drvdata(pdev); 1061 struct busfreq_data *data = platform_get_drvdata(pdev);
1062 1062
@@ -1087,7 +1087,7 @@ static const struct platform_device_id exynos4_busfreq_id[] = {
1087 1087
1088static struct platform_driver exynos4_busfreq_driver = { 1088static struct platform_driver exynos4_busfreq_driver = {
1089 .probe = exynos4_busfreq_probe, 1089 .probe = exynos4_busfreq_probe,
1090 .remove = __devexit_p(exynos4_busfreq_remove), 1090 .remove = exynos4_busfreq_remove,
1091 .id_table = exynos4_busfreq_id, 1091 .id_table = exynos4_busfreq_id,
1092 .driver = { 1092 .driver = {
1093 .name = "exynos4-busfreq", 1093 .name = "exynos4-busfreq",
diff --git a/drivers/firmware/dcdbas.c b/drivers/firmware/dcdbas.c
index ea5ac2dc1233..8e77c02edb24 100644
--- a/drivers/firmware/dcdbas.c
+++ b/drivers/firmware/dcdbas.c
@@ -537,7 +537,7 @@ static struct attribute_group dcdbas_attr_group = {
537 .attrs = dcdbas_dev_attrs, 537 .attrs = dcdbas_dev_attrs,
538}; 538};
539 539
540static int __devinit dcdbas_probe(struct platform_device *dev) 540static int dcdbas_probe(struct platform_device *dev)
541{ 541{
542 int i, error; 542 int i, error;
543 543
@@ -575,7 +575,7 @@ static int __devinit dcdbas_probe(struct platform_device *dev)
575 return 0; 575 return 0;
576} 576}
577 577
578static int __devexit dcdbas_remove(struct platform_device *dev) 578static int dcdbas_remove(struct platform_device *dev)
579{ 579{
580 int i; 580 int i;
581 581
@@ -593,7 +593,7 @@ static struct platform_driver dcdbas_driver = {
593 .owner = THIS_MODULE, 593 .owner = THIS_MODULE,
594 }, 594 },
595 .probe = dcdbas_probe, 595 .probe = dcdbas_probe,
596 .remove = __devexit_p(dcdbas_remove), 596 .remove = dcdbas_remove,
597}; 597};
598 598
599/** 599/**
diff --git a/drivers/gpio/gpio-da9055.c b/drivers/gpio/gpio-da9055.c
index 55d83c7d9c7f..fd6dfe382f13 100644
--- a/drivers/gpio/gpio-da9055.c
+++ b/drivers/gpio/gpio-da9055.c
@@ -126,7 +126,7 @@ static int da9055_gpio_to_irq(struct gpio_chip *gc, u32 offset)
126 DA9055_IRQ_GPI0 + offset); 126 DA9055_IRQ_GPI0 + offset);
127} 127}
128 128
129static struct gpio_chip reference_gp __devinitdata = { 129static struct gpio_chip reference_gp = {
130 .label = "da9055-gpio", 130 .label = "da9055-gpio",
131 .owner = THIS_MODULE, 131 .owner = THIS_MODULE,
132 .get = da9055_gpio_get, 132 .get = da9055_gpio_get,
@@ -139,7 +139,7 @@ static struct gpio_chip reference_gp __devinitdata = {
139 .base = -1, 139 .base = -1,
140}; 140};
141 141
142static int __devinit da9055_gpio_probe(struct platform_device *pdev) 142static int da9055_gpio_probe(struct platform_device *pdev)
143{ 143{
144 struct da9055_gpio *gpio; 144 struct da9055_gpio *gpio;
145 struct da9055_pdata *pdata; 145 struct da9055_pdata *pdata;
@@ -170,7 +170,7 @@ err_mem:
170 return ret; 170 return ret;
171} 171}
172 172
173static int __devexit da9055_gpio_remove(struct platform_device *pdev) 173static int da9055_gpio_remove(struct platform_device *pdev)
174{ 174{
175 struct da9055_gpio *gpio = platform_get_drvdata(pdev); 175 struct da9055_gpio *gpio = platform_get_drvdata(pdev);
176 176
@@ -179,7 +179,7 @@ static int __devexit da9055_gpio_remove(struct platform_device *pdev)
179 179
180static struct platform_driver da9055_gpio_driver = { 180static struct platform_driver da9055_gpio_driver = {
181 .probe = da9055_gpio_probe, 181 .probe = da9055_gpio_probe,
182 .remove = __devexit_p(da9055_gpio_remove), 182 .remove = da9055_gpio_remove,
183 .driver = { 183 .driver = {
184 .name = "da9055-gpio", 184 .name = "da9055-gpio",
185 .owner = THIS_MODULE, 185 .owner = THIS_MODULE,
diff --git a/drivers/gpio/gpio-ts5500.c b/drivers/gpio/gpio-ts5500.c
index 0634ceea3c24..cc53cab8df2a 100644
--- a/drivers/gpio/gpio-ts5500.c
+++ b/drivers/gpio/gpio-ts5500.c
@@ -319,7 +319,7 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
319 spin_unlock_irqrestore(&priv->lock, flags); 319 spin_unlock_irqrestore(&priv->lock, flags);
320} 320}
321 321
322static int __devinit ts5500_dio_probe(struct platform_device *pdev) 322static int ts5500_dio_probe(struct platform_device *pdev)
323{ 323{
324 enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data; 324 enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
325 struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data; 325 struct ts5500_dio_platform_data *pdata = pdev->dev.platform_data;
@@ -432,7 +432,7 @@ cleanup:
432 return ret; 432 return ret;
433} 433}
434 434
435static int __devexit ts5500_dio_remove(struct platform_device *pdev) 435static int ts5500_dio_remove(struct platform_device *pdev)
436{ 436{
437 struct ts5500_priv *priv = platform_get_drvdata(pdev); 437 struct ts5500_priv *priv = platform_get_drvdata(pdev);
438 438
@@ -455,7 +455,7 @@ static struct platform_driver ts5500_dio_driver = {
455 .owner = THIS_MODULE, 455 .owner = THIS_MODULE,
456 }, 456 },
457 .probe = ts5500_dio_probe, 457 .probe = ts5500_dio_probe,
458 .remove = __devexit_p(ts5500_dio_remove), 458 .remove = ts5500_dio_remove,
459 .id_table = ts5500_dio_ids, 459 .id_table = ts5500_dio_ids,
460}; 460};
461 461
diff --git a/drivers/gpio/gpio-viperboard.c b/drivers/gpio/gpio-viperboard.c
index 13772996cf24..59d72391de26 100644
--- a/drivers/gpio/gpio-viperboard.c
+++ b/drivers/gpio/gpio-viperboard.c
@@ -400,7 +400,7 @@ static int vprbrd_gpiob_direction_output(struct gpio_chip *chip,
400 400
401/* ----- end of gpio b chip ---------------------------------------------- */ 401/* ----- end of gpio b chip ---------------------------------------------- */
402 402
403static int __devinit vprbrd_gpio_probe(struct platform_device *pdev) 403static int vprbrd_gpio_probe(struct platform_device *pdev)
404{ 404{
405 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent); 405 struct vprbrd *vb = dev_get_drvdata(pdev->dev.parent);
406 struct vprbrd_gpio *vb_gpio; 406 struct vprbrd_gpio *vb_gpio;
@@ -456,7 +456,7 @@ err_gpioa:
456 return ret; 456 return ret;
457} 457}
458 458
459static int __devexit vprbrd_gpio_remove(struct platform_device *pdev) 459static int vprbrd_gpio_remove(struct platform_device *pdev)
460{ 460{
461 struct vprbrd_gpio *vb_gpio = platform_get_drvdata(pdev); 461 struct vprbrd_gpio *vb_gpio = platform_get_drvdata(pdev);
462 int ret; 462 int ret;
@@ -472,7 +472,7 @@ static struct platform_driver vprbrd_gpio_driver = {
472 .driver.name = "viperboard-gpio", 472 .driver.name = "viperboard-gpio",
473 .driver.owner = THIS_MODULE, 473 .driver.owner = THIS_MODULE,
474 .probe = vprbrd_gpio_probe, 474 .probe = vprbrd_gpio_probe,
475 .remove = __devexit_p(vprbrd_gpio_remove), 475 .remove = vprbrd_gpio_remove,
476}; 476};
477 477
478static int __init vprbrd_gpio_init(void) 478static int __init vprbrd_gpio_init(void)
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 9ef222442ca0..12e4fdc810bf 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -731,7 +731,7 @@ static struct hid_ll_driver i2c_hid_ll_driver = {
731 .hidinput_input_event = i2c_hid_hidinput_input_event, 731 .hidinput_input_event = i2c_hid_hidinput_input_event,
732}; 732};
733 733
734static int __devinit i2c_hid_init_irq(struct i2c_client *client) 734static int i2c_hid_init_irq(struct i2c_client *client)
735{ 735{
736 struct i2c_hid *ihid = i2c_get_clientdata(client); 736 struct i2c_hid *ihid = i2c_get_clientdata(client);
737 int ret; 737 int ret;
@@ -753,7 +753,7 @@ static int __devinit i2c_hid_init_irq(struct i2c_client *client)
753 return 0; 753 return 0;
754} 754}
755 755
756static int __devinit i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid) 756static int i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
757{ 757{
758 struct i2c_client *client = ihid->client; 758 struct i2c_client *client = ihid->client;
759 struct i2c_hid_desc *hdesc = &ihid->hdesc; 759 struct i2c_hid_desc *hdesc = &ihid->hdesc;
@@ -810,8 +810,8 @@ static int __devinit i2c_hid_fetch_hid_descriptor(struct i2c_hid *ihid)
810 return 0; 810 return 0;
811} 811}
812 812
813static int __devinit i2c_hid_probe(struct i2c_client *client, 813static int i2c_hid_probe(struct i2c_client *client,
814 const struct i2c_device_id *dev_id) 814 const struct i2c_device_id *dev_id)
815{ 815{
816 int ret; 816 int ret;
817 struct i2c_hid *ihid; 817 struct i2c_hid *ihid;
@@ -902,7 +902,7 @@ err:
902 return ret; 902 return ret;
903} 903}
904 904
905static int __devexit i2c_hid_remove(struct i2c_client *client) 905static int i2c_hid_remove(struct i2c_client *client)
906{ 906{
907 struct i2c_hid *ihid = i2c_get_clientdata(client); 907 struct i2c_hid *ihid = i2c_get_clientdata(client);
908 struct hid_device *hid; 908 struct hid_device *hid;
@@ -967,7 +967,7 @@ static struct i2c_driver i2c_hid_driver = {
967 }, 967 },
968 968
969 .probe = i2c_hid_probe, 969 .probe = i2c_hid_probe,
970 .remove = __devexit_p(i2c_hid_remove), 970 .remove = i2c_hid_remove,
971 971
972 .id_table = i2c_hid_id_table, 972 .id_table = i2c_hid_id_table,
973}; 973};
diff --git a/drivers/hsi/clients/hsi_char.c b/drivers/hsi/clients/hsi_char.c
index 3ad91f6447d8..e61e5f991aa5 100644
--- a/drivers/hsi/clients/hsi_char.c
+++ b/drivers/hsi/clients/hsi_char.c
@@ -675,7 +675,7 @@ static const struct file_operations hsc_fops = {
675 .release = hsc_release, 675 .release = hsc_release,
676}; 676};
677 677
678static void __devinit hsc_channel_init(struct hsc_channel *channel) 678static void hsc_channel_init(struct hsc_channel *channel)
679{ 679{
680 init_waitqueue_head(&channel->rx_wait); 680 init_waitqueue_head(&channel->rx_wait);
681 init_waitqueue_head(&channel->tx_wait); 681 init_waitqueue_head(&channel->tx_wait);
@@ -685,7 +685,7 @@ static void __devinit hsc_channel_init(struct hsc_channel *channel)
685 INIT_LIST_HEAD(&channel->tx_msgs_queue); 685 INIT_LIST_HEAD(&channel->tx_msgs_queue);
686} 686}
687 687
688static int __devinit hsc_probe(struct device *dev) 688static int hsc_probe(struct device *dev)
689{ 689{
690 const char devname[] = "hsi_char"; 690 const char devname[] = "hsi_char";
691 struct hsc_client_data *cl_data; 691 struct hsc_client_data *cl_data;
@@ -744,7 +744,7 @@ out1:
744 return ret; 744 return ret;
745} 745}
746 746
747static int __devexit hsc_remove(struct device *dev) 747static int hsc_remove(struct device *dev)
748{ 748{
749 struct hsi_client *cl = to_hsi_client(dev); 749 struct hsi_client *cl = to_hsi_client(dev);
750 struct hsc_client_data *cl_data = hsi_client_drvdata(cl); 750 struct hsc_client_data *cl_data = hsi_client_drvdata(cl);
@@ -763,7 +763,7 @@ static struct hsi_client_driver hsc_driver = {
763 .name = "hsi_char", 763 .name = "hsi_char",
764 .owner = THIS_MODULE, 764 .owner = THIS_MODULE,
765 .probe = hsc_probe, 765 .probe = hsc_probe,
766 .remove = __devexit_p(hsc_remove), 766 .remove = hsc_remove,
767 }, 767 },
768}; 768};
769 769
diff --git a/drivers/hwmon/vexpress.c b/drivers/hwmon/vexpress.c
index 59fd1268e58a..86d7f6d858b1 100644
--- a/drivers/hwmon/vexpress.c
+++ b/drivers/hwmon/vexpress.c
@@ -196,7 +196,7 @@ error:
196 return err; 196 return err;
197} 197}
198 198
199static int __devexit vexpress_hwmon_remove(struct platform_device *pdev) 199static int vexpress_hwmon_remove(struct platform_device *pdev)
200{ 200{
201 struct vexpress_hwmon_data *data = platform_get_drvdata(pdev); 201 struct vexpress_hwmon_data *data = platform_get_drvdata(pdev);
202 const struct of_device_id *match; 202 const struct of_device_id *match;
@@ -213,7 +213,7 @@ static int __devexit vexpress_hwmon_remove(struct platform_device *pdev)
213 213
214static struct platform_driver vexpress_hwmon_driver = { 214static struct platform_driver vexpress_hwmon_driver = {
215 .probe = vexpress_hwmon_probe, 215 .probe = vexpress_hwmon_probe,
216 .remove = __devexit_p(vexpress_hwmon_remove), 216 .remove = vexpress_hwmon_remove,
217 .driver = { 217 .driver = {
218 .name = DRVNAME, 218 .name = DRVNAME,
219 .owner = THIS_MODULE, 219 .owner = THIS_MODULE,
diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c
index 50e9c5e195e1..a34cc6714e5b 100644
--- a/drivers/input/keyboard/tca8418_keypad.c
+++ b/drivers/input/keyboard/tca8418_keypad.c
@@ -384,7 +384,7 @@ static const struct i2c_device_id tca8418_id[] = {
384MODULE_DEVICE_TABLE(i2c, tca8418_id); 384MODULE_DEVICE_TABLE(i2c, tca8418_id);
385 385
386#ifdef CONFIG_OF 386#ifdef CONFIG_OF
387static const struct of_device_id tca8418_dt_ids[] __devinitconst = { 387static const struct of_device_id tca8418_dt_ids[] = {
388 { .compatible = "ti,tca8418", }, 388 { .compatible = "ti,tca8418", },
389 { } 389 { }
390}; 390};
diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c
index 7da9071b68b6..2a9c8d93d2e8 100644
--- a/drivers/nfc/pn544/i2c.c
+++ b/drivers/nfc/pn544/i2c.c
@@ -361,8 +361,8 @@ static struct nfc_phy_ops i2c_phy_ops = {
361 .disable = pn544_hci_i2c_disable, 361 .disable = pn544_hci_i2c_disable,
362}; 362};
363 363
364static int __devinit pn544_hci_i2c_probe(struct i2c_client *client, 364static int pn544_hci_i2c_probe(struct i2c_client *client,
365 const struct i2c_device_id *id) 365 const struct i2c_device_id *id)
366{ 366{
367 struct pn544_i2c_phy *phy; 367 struct pn544_i2c_phy *phy;
368 struct pn544_nfc_platform_data *pdata; 368 struct pn544_nfc_platform_data *pdata;
@@ -442,7 +442,7 @@ err_phy_alloc:
442 return r; 442 return r;
443} 443}
444 444
445static __devexit int pn544_hci_i2c_remove(struct i2c_client *client) 445static int pn544_hci_i2c_remove(struct i2c_client *client)
446{ 446{
447 struct pn544_i2c_phy *phy = i2c_get_clientdata(client); 447 struct pn544_i2c_phy *phy = i2c_get_clientdata(client);
448 struct pn544_nfc_platform_data *pdata = client->dev.platform_data; 448 struct pn544_nfc_platform_data *pdata = client->dev.platform_data;
@@ -469,7 +469,7 @@ static struct i2c_driver pn544_hci_i2c_driver = {
469 }, 469 },
470 .probe = pn544_hci_i2c_probe, 470 .probe = pn544_hci_i2c_probe,
471 .id_table = pn544_hci_i2c_id_table, 471 .id_table = pn544_hci_i2c_id_table,
472 .remove = __devexit_p(pn544_hci_i2c_remove), 472 .remove = pn544_hci_i2c_remove,
473}; 473};
474 474
475static int __init pn544_hci_i2c_init(void) 475static int __init pn544_hci_i2c_init(void)
diff --git a/drivers/parisc/dino.c b/drivers/parisc/dino.c
index fb6a1fe21b93..8e4e86b78428 100644
--- a/drivers/parisc/dino.c
+++ b/drivers/parisc/dino.c
@@ -430,7 +430,7 @@ static void dino_choose_irq(struct parisc_device *dev, void *ctrl)
430 * Cirrus 6832 Cardbus reports wrong irq on RDI Tadpole PARISC Laptop (deller@gmx.de) 430 * Cirrus 6832 Cardbus reports wrong irq on RDI Tadpole PARISC Laptop (deller@gmx.de)
431 * (the irqs are off-by-one, not sure yet if this is a cirrus, dino-hardware or dino-driver problem...) 431 * (the irqs are off-by-one, not sure yet if this is a cirrus, dino-hardware or dino-driver problem...)
432 */ 432 */
433static void __devinit quirk_cirrus_cardbus(struct pci_dev *dev) 433static void quirk_cirrus_cardbus(struct pci_dev *dev)
434{ 434{
435 u8 new_irq = dev->irq - 1; 435 u8 new_irq = dev->irq - 1;
436 printk(KERN_INFO "PCI: Cirrus Cardbus IRQ fixup for %s, from %d to %d\n", 436 printk(KERN_INFO "PCI: Cirrus Cardbus IRQ fixup for %s, from %d to %d\n",
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c
index fdd63a6a62d6..2ef7103270bb 100644
--- a/drivers/parisc/lba_pci.c
+++ b/drivers/parisc/lba_pci.c
@@ -34,7 +34,7 @@
34#include <linux/types.h> 34#include <linux/types.h>
35#include <linux/kernel.h> 35#include <linux/kernel.h>
36#include <linux/spinlock.h> 36#include <linux/spinlock.h>
37#include <linux/init.h> /* for __init and __devinit */ 37#include <linux/init.h> /* for __init */
38#include <linux/pci.h> 38#include <linux/pci.h>
39#include <linux/ioport.h> 39#include <linux/ioport.h>
40#include <linux/slab.h> 40#include <linux/slab.h>
diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c
index 655055545479..2bf0c1b608dd 100644
--- a/drivers/pps/clients/pps-gpio.c
+++ b/drivers/pps/clients/pps-gpio.c
@@ -196,7 +196,7 @@ static int pps_gpio_remove(struct platform_device *pdev)
196 196
197static struct platform_driver pps_gpio_driver = { 197static struct platform_driver pps_gpio_driver = {
198 .probe = pps_gpio_probe, 198 .probe = pps_gpio_probe,
199 .remove = __devexit_p(pps_gpio_remove), 199 .remove = pps_gpio_remove,
200 .driver = { 200 .driver = {
201 .name = PPS_GPIO_NAME, 201 .name = PPS_GPIO_NAME,
202 .owner = THIS_MODULE 202 .owner = THIS_MODULE
diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c
index 643697f71390..b139b7792e9f 100644
--- a/drivers/ps3/ps3-lpm.c
+++ b/drivers/ps3/ps3-lpm.c
@@ -1185,7 +1185,7 @@ int ps3_lpm_close(void)
1185} 1185}
1186EXPORT_SYMBOL_GPL(ps3_lpm_close); 1186EXPORT_SYMBOL_GPL(ps3_lpm_close);
1187 1187
1188static int __devinit ps3_lpm_probe(struct ps3_system_bus_device *dev) 1188static int ps3_lpm_probe(struct ps3_system_bus_device *dev)
1189{ 1189{
1190 dev_dbg(&dev->core, " -> %s:%u\n", __func__, __LINE__); 1190 dev_dbg(&dev->core, " -> %s:%u\n", __func__, __LINE__);
1191 1191
diff --git a/drivers/ps3/ps3-sys-manager.c b/drivers/ps3/ps3-sys-manager.c
index 1b98367110c4..f2ab435954f6 100644
--- a/drivers/ps3/ps3-sys-manager.c
+++ b/drivers/ps3/ps3-sys-manager.c
@@ -706,7 +706,7 @@ static void ps3_sys_manager_work(struct ps3_system_bus_device *dev)
706 ps3_vuart_read_async(dev, PS3_SM_RX_MSG_LEN_MIN); 706 ps3_vuart_read_async(dev, PS3_SM_RX_MSG_LEN_MIN);
707} 707}
708 708
709static int __devinit ps3_sys_manager_probe(struct ps3_system_bus_device *dev) 709static int ps3_sys_manager_probe(struct ps3_system_bus_device *dev)
710{ 710{
711 int result; 711 int result;
712 struct ps3_sys_manager_ops ops; 712 struct ps3_sys_manager_ops ops;
diff --git a/drivers/ps3/ps3av.c b/drivers/ps3/ps3av.c
index 93d0a8b7718a..437fc35beb7b 100644
--- a/drivers/ps3/ps3av.c
+++ b/drivers/ps3/ps3av.c
@@ -932,7 +932,7 @@ int ps3av_audio_mute(int mute)
932} 932}
933EXPORT_SYMBOL_GPL(ps3av_audio_mute); 933EXPORT_SYMBOL_GPL(ps3av_audio_mute);
934 934
935static int __devinit ps3av_probe(struct ps3_system_bus_device *dev) 935static int ps3av_probe(struct ps3_system_bus_device *dev)
936{ 936{
937 int res; 937 int res;
938 int id; 938 int id;
diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap_remoteproc.c
index 32c289c2ba13..0e396c155b3b 100644
--- a/drivers/remoteproc/omap_remoteproc.c
+++ b/drivers/remoteproc/omap_remoteproc.c
@@ -179,7 +179,7 @@ static struct rproc_ops omap_rproc_ops = {
179 .kick = omap_rproc_kick, 179 .kick = omap_rproc_kick,
180}; 180};
181 181
182static int __devinit omap_rproc_probe(struct platform_device *pdev) 182static int omap_rproc_probe(struct platform_device *pdev)
183{ 183{
184 struct omap_rproc_pdata *pdata = pdev->dev.platform_data; 184 struct omap_rproc_pdata *pdata = pdev->dev.platform_data;
185 struct omap_rproc *oproc; 185 struct omap_rproc *oproc;
@@ -213,7 +213,7 @@ free_rproc:
213 return ret; 213 return ret;
214} 214}
215 215
216static int __devexit omap_rproc_remove(struct platform_device *pdev) 216static int omap_rproc_remove(struct platform_device *pdev)
217{ 217{
218 struct rproc *rproc = platform_get_drvdata(pdev); 218 struct rproc *rproc = platform_get_drvdata(pdev);
219 219
@@ -225,7 +225,7 @@ static int __devexit omap_rproc_remove(struct platform_device *pdev)
225 225
226static struct platform_driver omap_rproc_driver = { 226static struct platform_driver omap_rproc_driver = {
227 .probe = omap_rproc_probe, 227 .probe = omap_rproc_probe,
228 .remove = __devexit_p(omap_rproc_remove), 228 .remove = omap_rproc_remove,
229 .driver = { 229 .driver = {
230 .name = "omap-rproc", 230 .name = "omap-rproc",
231 .owner = THIS_MODULE, 231 .owner = THIS_MODULE,
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c
index 027096fe6a12..f1e323924f12 100644
--- a/drivers/rpmsg/virtio_rpmsg_bus.c
+++ b/drivers/rpmsg/virtio_rpmsg_bus.c
@@ -1022,7 +1022,7 @@ static int rpmsg_remove_device(struct device *dev, void *data)
1022 return 0; 1022 return 0;
1023} 1023}
1024 1024
1025static void __devexit rpmsg_remove(struct virtio_device *vdev) 1025static void rpmsg_remove(struct virtio_device *vdev)
1026{ 1026{
1027 struct virtproc_info *vrp = vdev->priv; 1027 struct virtproc_info *vrp = vdev->priv;
1028 int ret; 1028 int ret;
@@ -1063,7 +1063,7 @@ static struct virtio_driver virtio_ipc_driver = {
1063 .driver.owner = THIS_MODULE, 1063 .driver.owner = THIS_MODULE,
1064 .id_table = id_table, 1064 .id_table = id_table,
1065 .probe = rpmsg_probe, 1065 .probe = rpmsg_probe,
1066 .remove = __devexit_p(rpmsg_remove), 1066 .remove = rpmsg_remove,
1067}; 1067};
1068 1068
1069static int __init rpmsg_init(void) 1069static int __init rpmsg_init(void)
diff --git a/drivers/sh/pfc/gpio.c b/drivers/sh/pfc/gpio.c
index 038fa071382a..6a24f07c2013 100644
--- a/drivers/sh/pfc/gpio.c
+++ b/drivers/sh/pfc/gpio.c
@@ -165,7 +165,7 @@ static int sh_pfc_gpio_match(struct gpio_chip *gc, void *data)
165 return !!strstr(gc->label, data); 165 return !!strstr(gc->label, data);
166} 166}
167 167
168static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev) 168static int sh_pfc_gpio_probe(struct platform_device *pdev)
169{ 169{
170 struct sh_pfc_chip *chip; 170 struct sh_pfc_chip *chip;
171 struct gpio_chip *gc; 171 struct gpio_chip *gc;
@@ -184,7 +184,7 @@ static int __devinit sh_pfc_gpio_probe(struct platform_device *pdev)
184 return 0; 184 return 0;
185} 185}
186 186
187static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev) 187static int sh_pfc_gpio_remove(struct platform_device *pdev)
188{ 188{
189 struct sh_pfc_chip *chip = platform_get_drvdata(pdev); 189 struct sh_pfc_chip *chip = platform_get_drvdata(pdev);
190 int ret; 190 int ret;
@@ -199,7 +199,7 @@ static int __devexit sh_pfc_gpio_remove(struct platform_device *pdev)
199 199
200static struct platform_driver sh_pfc_gpio_driver = { 200static struct platform_driver sh_pfc_gpio_driver = {
201 .probe = sh_pfc_gpio_probe, 201 .probe = sh_pfc_gpio_probe,
202 .remove = __devexit_p(sh_pfc_gpio_remove), 202 .remove = sh_pfc_gpio_remove,
203 .driver = { 203 .driver = {
204 .name = KBUILD_MODNAME, 204 .name = KBUILD_MODNAME,
205 .owner = THIS_MODULE, 205 .owner = THIS_MODULE,
diff --git a/drivers/sh/pfc/pinctrl.c b/drivers/sh/pfc/pinctrl.c
index 0646bf6e7889..4109b769eac0 100644
--- a/drivers/sh/pfc/pinctrl.c
+++ b/drivers/sh/pfc/pinctrl.c
@@ -328,10 +328,10 @@ static struct pinctrl_desc sh_pfc_pinctrl_desc = {
328 .confops = &sh_pfc_pinconf_ops, 328 .confops = &sh_pfc_pinconf_ops,
329}; 329};
330 330
331static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc, 331static inline void sh_pfc_map_one_gpio(struct sh_pfc *pfc,
332 struct sh_pfc_pinctrl *pmx, 332 struct sh_pfc_pinctrl *pmx,
333 struct pinmux_gpio *gpio, 333 struct pinmux_gpio *gpio,
334 unsigned offset) 334 unsigned offset)
335{ 335{
336 struct pinmux_data_reg *dummy; 336 struct pinmux_data_reg *dummy;
337 unsigned long flags; 337 unsigned long flags;
@@ -351,8 +351,7 @@ static inline void __devinit sh_pfc_map_one_gpio(struct sh_pfc *pfc,
351} 351}
352 352
353/* pinmux ranges -> pinctrl pin descs */ 353/* pinmux ranges -> pinctrl pin descs */
354static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc, 354static int sh_pfc_map_gpios(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
355 struct sh_pfc_pinctrl *pmx)
356{ 355{
357 unsigned long flags; 356 unsigned long flags;
358 int i; 357 int i;
@@ -396,8 +395,7 @@ static int __devinit sh_pfc_map_gpios(struct sh_pfc *pfc,
396 return 0; 395 return 0;
397} 396}
398 397
399static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc, 398static int sh_pfc_map_functions(struct sh_pfc *pfc, struct sh_pfc_pinctrl *pmx)
400 struct sh_pfc_pinctrl *pmx)
401{ 399{
402 unsigned long flags; 400 unsigned long flags;
403 int i, fn; 401 int i, fn;
@@ -421,7 +419,7 @@ static int __devinit sh_pfc_map_functions(struct sh_pfc *pfc,
421 return 0; 419 return 0;
422} 420}
423 421
424static int __devinit sh_pfc_pinctrl_probe(struct platform_device *pdev) 422static int sh_pfc_pinctrl_probe(struct platform_device *pdev)
425{ 423{
426 struct sh_pfc *pfc; 424 struct sh_pfc *pfc;
427 int ret; 425 int ret;
@@ -465,7 +463,7 @@ free_pads:
465 return ret; 463 return ret;
466} 464}
467 465
468static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev) 466static int sh_pfc_pinctrl_remove(struct platform_device *pdev)
469{ 467{
470 struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev); 468 struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev);
471 469
@@ -482,7 +480,7 @@ static int __devexit sh_pfc_pinctrl_remove(struct platform_device *pdev)
482 480
483static struct platform_driver sh_pfc_pinctrl_driver = { 481static struct platform_driver sh_pfc_pinctrl_driver = {
484 .probe = sh_pfc_pinctrl_probe, 482 .probe = sh_pfc_pinctrl_probe,
485 .remove = __devexit_p(sh_pfc_pinctrl_remove), 483 .remove = sh_pfc_pinctrl_remove,
486 .driver = { 484 .driver = {
487 .name = DRV_NAME, 485 .name = DRV_NAME,
488 .owner = THIS_MODULE, 486 .owner = THIS_MODULE,
diff --git a/drivers/sn/ioc3.c b/drivers/sn/ioc3.c
index b3b33fa26acd..fb7ea0d9a734 100644
--- a/drivers/sn/ioc3.c
+++ b/drivers/sn/ioc3.c
@@ -575,11 +575,10 @@ void ioc3_unregister_submodule(struct ioc3_submodule *is)
575 * Device management * 575 * Device management *
576 *********************/ 576 *********************/
577 577
578static char * __devinitdata 578static char *ioc3_class_names[] = { "unknown", "IP27 BaseIO", "IP30 system",
579ioc3_class_names[]={"unknown", "IP27 BaseIO", "IP30 system", "MENET 1/2/3", 579 "MENET 1/2/3", "MENET 4", "CADduo", "Altix Serial" };
580 "MENET 4", "CADduo", "Altix Serial"};
581 580
582static int __devinit ioc3_class(struct ioc3_driver_data *idd) 581static int ioc3_class(struct ioc3_driver_data *idd)
583{ 582{
584 int res = IOC3_CLASS_NONE; 583 int res = IOC3_CLASS_NONE;
585 /* NIC-based logic */ 584 /* NIC-based logic */
@@ -602,8 +601,7 @@ static int __devinit ioc3_class(struct ioc3_driver_data *idd)
602 return res; 601 return res;
603} 602}
604/* Adds a new instance of an IOC3 card */ 603/* Adds a new instance of an IOC3 card */
605static int __devinit 604static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
606ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
607{ 605{
608 struct ioc3_driver_data *idd; 606 struct ioc3_driver_data *idd;
609 uint32_t pcmd; 607 uint32_t pcmd;
@@ -755,7 +753,7 @@ out:
755} 753}
756 754
757/* Removes a particular instance of an IOC3 card. */ 755/* Removes a particular instance of an IOC3 card. */
758static void __devexit ioc3_remove(struct pci_dev *pdev) 756static void ioc3_remove(struct pci_dev *pdev)
759{ 757{
760 int id; 758 int id;
761 struct ioc3_driver_data *idd; 759 struct ioc3_driver_data *idd;
@@ -807,7 +805,7 @@ static struct pci_driver ioc3_driver = {
807 .name = "IOC3", 805 .name = "IOC3",
808 .id_table = ioc3_id_table, 806 .id_table = ioc3_id_table,
809 .probe = ioc3_probe, 807 .probe = ioc3_probe,
810 .remove = __devexit_p(ioc3_remove), 808 .remove = ioc3_remove,
811}; 809};
812 810
813MODULE_DEVICE_TABLE(pci, ioc3_id_table); 811MODULE_DEVICE_TABLE(pci, ioc3_id_table);