diff options
Diffstat (limited to 'drivers/mfd/sta2x11-mfd.c')
-rw-r--r-- | drivers/mfd/sta2x11-mfd.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mfd/sta2x11-mfd.c b/drivers/mfd/sta2x11-mfd.c index d35da6820bea..d6284cacd27a 100644 --- a/drivers/mfd/sta2x11-mfd.c +++ b/drivers/mfd/sta2x11-mfd.c | |||
@@ -69,7 +69,7 @@ static struct sta2x11_mfd *sta2x11_mfd_find(struct pci_dev *pdev) | |||
69 | return NULL; | 69 | return NULL; |
70 | } | 70 | } |
71 | 71 | ||
72 | static int __devinit sta2x11_mfd_add(struct pci_dev *pdev, gfp_t flags) | 72 | static int sta2x11_mfd_add(struct pci_dev *pdev, gfp_t flags) |
73 | { | 73 | { |
74 | struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); | 74 | struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); |
75 | struct sta2x11_instance *instance; | 75 | struct sta2x11_instance *instance; |
@@ -89,7 +89,7 @@ static int __devinit sta2x11_mfd_add(struct pci_dev *pdev, gfp_t flags) | |||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | static int __devexit mfd_remove(struct pci_dev *pdev) | 92 | static int mfd_remove(struct pci_dev *pdev) |
93 | { | 93 | { |
94 | struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); | 94 | struct sta2x11_mfd *mfd = sta2x11_mfd_find(pdev); |
95 | 95 | ||
@@ -305,7 +305,7 @@ enum bar1_cells { | |||
305 | .flags = IORESOURCE_MEM, \ | 305 | .flags = IORESOURCE_MEM, \ |
306 | } | 306 | } |
307 | 307 | ||
308 | static const __devinitconst struct resource gpio_resources[] = { | 308 | static const struct resource gpio_resources[] = { |
309 | { | 309 | { |
310 | .name = "sta2x11_gpio", /* 4 consecutive cells, 1 driver */ | 310 | .name = "sta2x11_gpio", /* 4 consecutive cells, 1 driver */ |
311 | .start = 0, | 311 | .start = 0, |
@@ -313,31 +313,31 @@ static const __devinitconst struct resource gpio_resources[] = { | |||
313 | .flags = IORESOURCE_MEM, | 313 | .flags = IORESOURCE_MEM, |
314 | } | 314 | } |
315 | }; | 315 | }; |
316 | static const __devinitconst struct resource sctl_resources[] = { | 316 | static const struct resource sctl_resources[] = { |
317 | CELL_4K("sta2x11-sctl", STA2X11_SCTL), | 317 | CELL_4K("sta2x11-sctl", STA2X11_SCTL), |
318 | }; | 318 | }; |
319 | static const __devinitconst struct resource scr_resources[] = { | 319 | static const struct resource scr_resources[] = { |
320 | CELL_4K("sta2x11-scr", STA2X11_SCR), | 320 | CELL_4K("sta2x11-scr", STA2X11_SCR), |
321 | }; | 321 | }; |
322 | static const __devinitconst struct resource time_resources[] = { | 322 | static const struct resource time_resources[] = { |
323 | CELL_4K("sta2x11-time", STA2X11_TIME), | 323 | CELL_4K("sta2x11-time", STA2X11_TIME), |
324 | }; | 324 | }; |
325 | 325 | ||
326 | static const __devinitconst struct resource apbreg_resources[] = { | 326 | static const struct resource apbreg_resources[] = { |
327 | CELL_4K("sta2x11-apbreg", STA2X11_APBREG), | 327 | CELL_4K("sta2x11-apbreg", STA2X11_APBREG), |
328 | }; | 328 | }; |
329 | 329 | ||
330 | #define DEV(_name, _r) \ | 330 | #define DEV(_name, _r) \ |
331 | { .name = _name, .num_resources = ARRAY_SIZE(_r), .resources = _r, } | 331 | { .name = _name, .num_resources = ARRAY_SIZE(_r), .resources = _r, } |
332 | 332 | ||
333 | static __devinitdata struct mfd_cell sta2x11_mfd_bar0[] = { | 333 | static struct mfd_cell sta2x11_mfd_bar0[] = { |
334 | DEV("sta2x11-gpio", gpio_resources), /* offset 0: we add pdata later */ | 334 | DEV("sta2x11-gpio", gpio_resources), /* offset 0: we add pdata later */ |
335 | DEV("sta2x11-sctl", sctl_resources), | 335 | DEV("sta2x11-sctl", sctl_resources), |
336 | DEV("sta2x11-scr", scr_resources), | 336 | DEV("sta2x11-scr", scr_resources), |
337 | DEV("sta2x11-time", time_resources), | 337 | DEV("sta2x11-time", time_resources), |
338 | }; | 338 | }; |
339 | 339 | ||
340 | static __devinitdata struct mfd_cell sta2x11_mfd_bar1[] = { | 340 | static struct mfd_cell sta2x11_mfd_bar1[] = { |
341 | DEV("sta2x11-apbreg", apbreg_resources), | 341 | DEV("sta2x11-apbreg", apbreg_resources), |
342 | }; | 342 | }; |
343 | 343 | ||
@@ -363,7 +363,7 @@ static int sta2x11_mfd_resume(struct pci_dev *pdev) | |||
363 | return 0; | 363 | return 0; |
364 | } | 364 | } |
365 | 365 | ||
366 | static int __devinit sta2x11_mfd_probe(struct pci_dev *pdev, | 366 | static int sta2x11_mfd_probe(struct pci_dev *pdev, |
367 | const struct pci_device_id *pci_id) | 367 | const struct pci_device_id *pci_id) |
368 | { | 368 | { |
369 | int err, i; | 369 | int err, i; |