aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/sta2x11-mfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/sta2x11-mfd.c')
-rw-r--r--drivers/mfd/sta2x11-mfd.c20
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
72static int __devinit sta2x11_mfd_add(struct pci_dev *pdev, gfp_t flags) 72static 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
92static int __devexit mfd_remove(struct pci_dev *pdev) 92static 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
308static const __devinitconst struct resource gpio_resources[] = { 308static 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};
316static const __devinitconst struct resource sctl_resources[] = { 316static const struct resource sctl_resources[] = {
317 CELL_4K("sta2x11-sctl", STA2X11_SCTL), 317 CELL_4K("sta2x11-sctl", STA2X11_SCTL),
318}; 318};
319static const __devinitconst struct resource scr_resources[] = { 319static const struct resource scr_resources[] = {
320 CELL_4K("sta2x11-scr", STA2X11_SCR), 320 CELL_4K("sta2x11-scr", STA2X11_SCR),
321}; 321};
322static const __devinitconst struct resource time_resources[] = { 322static const struct resource time_resources[] = {
323 CELL_4K("sta2x11-time", STA2X11_TIME), 323 CELL_4K("sta2x11-time", STA2X11_TIME),
324}; 324};
325 325
326static const __devinitconst struct resource apbreg_resources[] = { 326static 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
333static __devinitdata struct mfd_cell sta2x11_mfd_bar0[] = { 333static 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
340static __devinitdata struct mfd_cell sta2x11_mfd_bar1[] = { 340static 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
366static int __devinit sta2x11_mfd_probe(struct pci_dev *pdev, 366static 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;