diff options
-rw-r--r-- | drivers/dma/timb_dma.c | 3 | ||||
-rw-r--r-- | drivers/gpio/timbgpio.c | 6 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-ocores.c | 3 | ||||
-rw-r--r-- | drivers/i2c/busses/i2c-xiic.c | 3 | ||||
-rw-r--r-- | drivers/media/radio/radio-timb.c | 3 | ||||
-rw-r--r-- | drivers/media/video/timblogiw.c | 3 | ||||
-rw-r--r-- | drivers/mfd/timberdale.c | 81 | ||||
-rw-r--r-- | drivers/net/ks8842.c | 3 | ||||
-rw-r--r-- | drivers/spi/xilinx_spi.c | 3 |
9 files changed, 64 insertions, 44 deletions
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index d2c75feff7df..f69f90a61873 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include <linux/io.h> | 27 | #include <linux/io.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/platform_device.h> | 29 | #include <linux/platform_device.h> |
30 | #include <linux/mfd/core.h> | ||
31 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
32 | 31 | ||
33 | #include <linux/timb_dma.h> | 32 | #include <linux/timb_dma.h> |
@@ -685,7 +684,7 @@ static irqreturn_t td_irq(int irq, void *devid) | |||
685 | 684 | ||
686 | static int __devinit td_probe(struct platform_device *pdev) | 685 | static int __devinit td_probe(struct platform_device *pdev) |
687 | { | 686 | { |
688 | struct timb_dma_platform_data *pdata = mfd_get_data(pdev); | 687 | struct timb_dma_platform_data *pdata = pdev->dev.platform_data; |
689 | struct timb_dma *td; | 688 | struct timb_dma *td; |
690 | struct resource *iomem; | 689 | struct resource *iomem; |
691 | int irq; | 690 | int irq; |
diff --git a/drivers/gpio/timbgpio.c b/drivers/gpio/timbgpio.c index edbe1eae531f..0265872e57d1 100644 --- a/drivers/gpio/timbgpio.c +++ b/drivers/gpio/timbgpio.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/module.h> | 23 | #include <linux/module.h> |
24 | #include <linux/gpio.h> | 24 | #include <linux/gpio.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/mfd/core.h> | ||
27 | #include <linux/irq.h> | 26 | #include <linux/irq.h> |
28 | #include <linux/io.h> | 27 | #include <linux/io.h> |
29 | #include <linux/timb_gpio.h> | 28 | #include <linux/timb_gpio.h> |
@@ -229,7 +228,7 @@ static int __devinit timbgpio_probe(struct platform_device *pdev) | |||
229 | struct gpio_chip *gc; | 228 | struct gpio_chip *gc; |
230 | struct timbgpio *tgpio; | 229 | struct timbgpio *tgpio; |
231 | struct resource *iomem; | 230 | struct resource *iomem; |
232 | struct timbgpio_platform_data *pdata = mfd_get_data(pdev); | 231 | struct timbgpio_platform_data *pdata = pdev->dev.platform_data; |
233 | int irq = platform_get_irq(pdev, 0); | 232 | int irq = platform_get_irq(pdev, 0); |
234 | 233 | ||
235 | if (!pdata || pdata->nr_pins > 32) { | 234 | if (!pdata || pdata->nr_pins > 32) { |
@@ -320,13 +319,14 @@ err_mem: | |||
320 | static int __devexit timbgpio_remove(struct platform_device *pdev) | 319 | static int __devexit timbgpio_remove(struct platform_device *pdev) |
321 | { | 320 | { |
322 | int err; | 321 | int err; |
322 | struct timbgpio_platform_data *pdata = pdev->dev.platform_data; | ||
323 | struct timbgpio *tgpio = platform_get_drvdata(pdev); | 323 | struct timbgpio *tgpio = platform_get_drvdata(pdev); |
324 | struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 324 | struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
325 | int irq = platform_get_irq(pdev, 0); | 325 | int irq = platform_get_irq(pdev, 0); |
326 | 326 | ||
327 | if (irq >= 0 && tgpio->irq_base > 0) { | 327 | if (irq >= 0 && tgpio->irq_base > 0) { |
328 | int i; | 328 | int i; |
329 | for (i = 0; i < tgpio->gpio.ngpio; i++) { | 329 | for (i = 0; i < pdata->nr_pins; i++) { |
330 | irq_set_chip(tgpio->irq_base + i, NULL); | 330 | irq_set_chip(tgpio->irq_base + i, NULL); |
331 | irq_set_chip_data(tgpio->irq_base + i, NULL); | 331 | irq_set_chip_data(tgpio->irq_base + i, NULL); |
332 | } | 332 | } |
diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index fee1a2613861..1b46a9d9f907 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c | |||
@@ -49,7 +49,6 @@ | |||
49 | #include <linux/init.h> | 49 | #include <linux/init.h> |
50 | #include <linux/errno.h> | 50 | #include <linux/errno.h> |
51 | #include <linux/platform_device.h> | 51 | #include <linux/platform_device.h> |
52 | #include <linux/mfd/core.h> | ||
53 | #include <linux/i2c.h> | 52 | #include <linux/i2c.h> |
54 | #include <linux/interrupt.h> | 53 | #include <linux/interrupt.h> |
55 | #include <linux/wait.h> | 54 | #include <linux/wait.h> |
@@ -306,7 +305,7 @@ static int __devinit ocores_i2c_probe(struct platform_device *pdev) | |||
306 | return -EIO; | 305 | return -EIO; |
307 | } | 306 | } |
308 | 307 | ||
309 | pdata = mfd_get_data(pdev); | 308 | pdata = pdev->dev.platform_data; |
310 | if (pdata) { | 309 | if (pdata) { |
311 | i2c->regstep = pdata->regstep; | 310 | i2c->regstep = pdata->regstep; |
312 | i2c->clock_khz = pdata->clock_khz; | 311 | i2c->clock_khz = pdata->clock_khz; |
diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index e9d5ff4d1496..4bb68f35caf2 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <linux/errno.h> | 34 | #include <linux/errno.h> |
35 | #include <linux/delay.h> | 35 | #include <linux/delay.h> |
36 | #include <linux/platform_device.h> | 36 | #include <linux/platform_device.h> |
37 | #include <linux/mfd/core.h> | ||
38 | #include <linux/i2c.h> | 37 | #include <linux/i2c.h> |
39 | #include <linux/interrupt.h> | 38 | #include <linux/interrupt.h> |
40 | #include <linux/wait.h> | 39 | #include <linux/wait.h> |
@@ -705,7 +704,7 @@ static int __devinit xiic_i2c_probe(struct platform_device *pdev) | |||
705 | if (irq < 0) | 704 | if (irq < 0) |
706 | goto resource_missing; | 705 | goto resource_missing; |
707 | 706 | ||
708 | pdata = mfd_get_data(pdev); | 707 | pdata = (struct xiic_i2c_platform_data *) pdev->dev.platform_data; |
709 | if (!pdata) | 708 | if (!pdata) |
710 | return -EINVAL; | 709 | return -EINVAL; |
711 | 710 | ||
diff --git a/drivers/media/radio/radio-timb.c b/drivers/media/radio/radio-timb.c index 1e3a8dd820a4..a185610b376b 100644 --- a/drivers/media/radio/radio-timb.c +++ b/drivers/media/radio/radio-timb.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <media/v4l2-ioctl.h> | 21 | #include <media/v4l2-ioctl.h> |
22 | #include <media/v4l2-device.h> | 22 | #include <media/v4l2-device.h> |
23 | #include <linux/platform_device.h> | 23 | #include <linux/platform_device.h> |
24 | #include <linux/mfd/core.h> | ||
25 | #include <linux/interrupt.h> | 24 | #include <linux/interrupt.h> |
26 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
27 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
@@ -149,7 +148,7 @@ static const struct v4l2_file_operations timbradio_fops = { | |||
149 | 148 | ||
150 | static int __devinit timbradio_probe(struct platform_device *pdev) | 149 | static int __devinit timbradio_probe(struct platform_device *pdev) |
151 | { | 150 | { |
152 | struct timb_radio_platform_data *pdata = mfd_get_data(pdev); | 151 | struct timb_radio_platform_data *pdata = pdev->dev.platform_data; |
153 | struct timbradio *tr; | 152 | struct timbradio *tr; |
154 | int err; | 153 | int err; |
155 | 154 | ||
diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c index 84d4c7c83435..fc611ebeb82c 100644 --- a/drivers/media/video/timblogiw.c +++ b/drivers/media/video/timblogiw.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <linux/platform_device.h> | 24 | #include <linux/platform_device.h> |
25 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
26 | #include <linux/dmaengine.h> | 26 | #include <linux/dmaengine.h> |
27 | #include <linux/mfd/core.h> | ||
28 | #include <linux/scatterlist.h> | 27 | #include <linux/scatterlist.h> |
29 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
30 | #include <linux/list.h> | 29 | #include <linux/list.h> |
@@ -791,7 +790,7 @@ static int __devinit timblogiw_probe(struct platform_device *pdev) | |||
791 | { | 790 | { |
792 | int err; | 791 | int err; |
793 | struct timblogiw *lw = NULL; | 792 | struct timblogiw *lw = NULL; |
794 | struct timb_video_platform_data *pdata = mfd_get_data(pdev); | 793 | struct timb_video_platform_data *pdata = pdev->dev.platform_data; |
795 | 794 | ||
796 | if (!pdata) { | 795 | if (!pdata) { |
797 | dev_err(&pdev->dev, "No platform data\n"); | 796 | dev_err(&pdev->dev, "No platform data\n"); |
diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index 94c6c8afad12..69272e4e3459 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c | |||
@@ -384,7 +384,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
384 | .name = "timb-dma", | 384 | .name = "timb-dma", |
385 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 385 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
386 | .resources = timberdale_dma_resources, | 386 | .resources = timberdale_dma_resources, |
387 | .mfd_data = &timb_dma_platform_data, | 387 | .platform_data = &timb_dma_platform_data, |
388 | .pdata_size = sizeof(timb_dma_platform_data), | ||
388 | }, | 389 | }, |
389 | { | 390 | { |
390 | .name = "timb-uart", | 391 | .name = "timb-uart", |
@@ -395,37 +396,43 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
395 | .name = "xiic-i2c", | 396 | .name = "xiic-i2c", |
396 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), | 397 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), |
397 | .resources = timberdale_xiic_resources, | 398 | .resources = timberdale_xiic_resources, |
398 | .mfd_data = &timberdale_xiic_platform_data, | 399 | .platform_data = &timberdale_xiic_platform_data, |
400 | .pdata_size = sizeof(timberdale_xiic_platform_data), | ||
399 | }, | 401 | }, |
400 | { | 402 | { |
401 | .name = "timb-gpio", | 403 | .name = "timb-gpio", |
402 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 404 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
403 | .resources = timberdale_gpio_resources, | 405 | .resources = timberdale_gpio_resources, |
404 | .mfd_data = &timberdale_gpio_platform_data, | 406 | .platform_data = &timberdale_gpio_platform_data, |
407 | .pdata_size = sizeof(timberdale_gpio_platform_data), | ||
405 | }, | 408 | }, |
406 | { | 409 | { |
407 | .name = "timb-video", | 410 | .name = "timb-video", |
408 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 411 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
409 | .resources = timberdale_video_resources, | 412 | .resources = timberdale_video_resources, |
410 | .mfd_data = &timberdale_video_platform_data, | 413 | .platform_data = &timberdale_video_platform_data, |
414 | .pdata_size = sizeof(timberdale_video_platform_data), | ||
411 | }, | 415 | }, |
412 | { | 416 | { |
413 | .name = "timb-radio", | 417 | .name = "timb-radio", |
414 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 418 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
415 | .resources = timberdale_radio_resources, | 419 | .resources = timberdale_radio_resources, |
416 | .mfd_data = &timberdale_radio_platform_data, | 420 | .platform_data = &timberdale_radio_platform_data, |
421 | .pdata_size = sizeof(timberdale_radio_platform_data), | ||
417 | }, | 422 | }, |
418 | { | 423 | { |
419 | .name = "xilinx_spi", | 424 | .name = "xilinx_spi", |
420 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 425 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
421 | .resources = timberdale_spi_resources, | 426 | .resources = timberdale_spi_resources, |
422 | .mfd_data = &timberdale_xspi_platform_data, | 427 | .platform_data = &timberdale_xspi_platform_data, |
428 | .pdata_size = sizeof(timberdale_xspi_platform_data), | ||
423 | }, | 429 | }, |
424 | { | 430 | { |
425 | .name = "ks8842", | 431 | .name = "ks8842", |
426 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 432 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
427 | .resources = timberdale_eth_resources, | 433 | .resources = timberdale_eth_resources, |
428 | .mfd_data = &timberdale_ks8842_platform_data, | 434 | .platform_data = &timberdale_ks8842_platform_data, |
435 | .pdata_size = sizeof(timberdale_ks8842_platform_data), | ||
429 | }, | 436 | }, |
430 | }; | 437 | }; |
431 | 438 | ||
@@ -434,7 +441,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
434 | .name = "timb-dma", | 441 | .name = "timb-dma", |
435 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 442 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
436 | .resources = timberdale_dma_resources, | 443 | .resources = timberdale_dma_resources, |
437 | .mfd_data = &timb_dma_platform_data, | 444 | .platform_data = &timb_dma_platform_data, |
445 | .pdata_size = sizeof(timb_dma_platform_data), | ||
438 | }, | 446 | }, |
439 | { | 447 | { |
440 | .name = "timb-uart", | 448 | .name = "timb-uart", |
@@ -450,13 +458,15 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
450 | .name = "xiic-i2c", | 458 | .name = "xiic-i2c", |
451 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), | 459 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), |
452 | .resources = timberdale_xiic_resources, | 460 | .resources = timberdale_xiic_resources, |
453 | .mfd_data = &timberdale_xiic_platform_data, | 461 | .platform_data = &timberdale_xiic_platform_data, |
462 | .pdata_size = sizeof(timberdale_xiic_platform_data), | ||
454 | }, | 463 | }, |
455 | { | 464 | { |
456 | .name = "timb-gpio", | 465 | .name = "timb-gpio", |
457 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 466 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
458 | .resources = timberdale_gpio_resources, | 467 | .resources = timberdale_gpio_resources, |
459 | .mfd_data = &timberdale_gpio_platform_data, | 468 | .platform_data = &timberdale_gpio_platform_data, |
469 | .pdata_size = sizeof(timberdale_gpio_platform_data), | ||
460 | }, | 470 | }, |
461 | { | 471 | { |
462 | .name = "timb-mlogicore", | 472 | .name = "timb-mlogicore", |
@@ -467,25 +477,29 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
467 | .name = "timb-video", | 477 | .name = "timb-video", |
468 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 478 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
469 | .resources = timberdale_video_resources, | 479 | .resources = timberdale_video_resources, |
470 | .mfd_data = &timberdale_video_platform_data, | 480 | .platform_data = &timberdale_video_platform_data, |
481 | .pdata_size = sizeof(timberdale_video_platform_data), | ||
471 | }, | 482 | }, |
472 | { | 483 | { |
473 | .name = "timb-radio", | 484 | .name = "timb-radio", |
474 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 485 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
475 | .resources = timberdale_radio_resources, | 486 | .resources = timberdale_radio_resources, |
476 | .mfd_data = &timberdale_radio_platform_data, | 487 | .platform_data = &timberdale_radio_platform_data, |
488 | .pdata_size = sizeof(timberdale_radio_platform_data), | ||
477 | }, | 489 | }, |
478 | { | 490 | { |
479 | .name = "xilinx_spi", | 491 | .name = "xilinx_spi", |
480 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 492 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
481 | .resources = timberdale_spi_resources, | 493 | .resources = timberdale_spi_resources, |
482 | .mfd_data = &timberdale_xspi_platform_data, | 494 | .platform_data = &timberdale_xspi_platform_data, |
495 | .pdata_size = sizeof(timberdale_xspi_platform_data), | ||
483 | }, | 496 | }, |
484 | { | 497 | { |
485 | .name = "ks8842", | 498 | .name = "ks8842", |
486 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 499 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
487 | .resources = timberdale_eth_resources, | 500 | .resources = timberdale_eth_resources, |
488 | .mfd_data = &timberdale_ks8842_platform_data, | 501 | .platform_data = &timberdale_ks8842_platform_data, |
502 | .pdata_size = sizeof(timberdale_ks8842_platform_data), | ||
489 | }, | 503 | }, |
490 | }; | 504 | }; |
491 | 505 | ||
@@ -494,7 +508,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
494 | .name = "timb-dma", | 508 | .name = "timb-dma", |
495 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 509 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
496 | .resources = timberdale_dma_resources, | 510 | .resources = timberdale_dma_resources, |
497 | .mfd_data = &timb_dma_platform_data, | 511 | .platform_data = &timb_dma_platform_data, |
512 | .pdata_size = sizeof(timb_dma_platform_data), | ||
498 | }, | 513 | }, |
499 | { | 514 | { |
500 | .name = "timb-uart", | 515 | .name = "timb-uart", |
@@ -505,31 +520,36 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
505 | .name = "xiic-i2c", | 520 | .name = "xiic-i2c", |
506 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), | 521 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), |
507 | .resources = timberdale_xiic_resources, | 522 | .resources = timberdale_xiic_resources, |
508 | .mfd_data = &timberdale_xiic_platform_data, | 523 | .platform_data = &timberdale_xiic_platform_data, |
524 | .pdata_size = sizeof(timberdale_xiic_platform_data), | ||
509 | }, | 525 | }, |
510 | { | 526 | { |
511 | .name = "timb-gpio", | 527 | .name = "timb-gpio", |
512 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 528 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
513 | .resources = timberdale_gpio_resources, | 529 | .resources = timberdale_gpio_resources, |
514 | .mfd_data = &timberdale_gpio_platform_data, | 530 | .platform_data = &timberdale_gpio_platform_data, |
531 | .pdata_size = sizeof(timberdale_gpio_platform_data), | ||
515 | }, | 532 | }, |
516 | { | 533 | { |
517 | .name = "timb-video", | 534 | .name = "timb-video", |
518 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 535 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
519 | .resources = timberdale_video_resources, | 536 | .resources = timberdale_video_resources, |
520 | .mfd_data = &timberdale_video_platform_data, | 537 | .platform_data = &timberdale_video_platform_data, |
538 | .pdata_size = sizeof(timberdale_video_platform_data), | ||
521 | }, | 539 | }, |
522 | { | 540 | { |
523 | .name = "timb-radio", | 541 | .name = "timb-radio", |
524 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 542 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
525 | .resources = timberdale_radio_resources, | 543 | .resources = timberdale_radio_resources, |
526 | .mfd_data = &timberdale_radio_platform_data, | 544 | .platform_data = &timberdale_radio_platform_data, |
545 | .pdata_size = sizeof(timberdale_radio_platform_data), | ||
527 | }, | 546 | }, |
528 | { | 547 | { |
529 | .name = "xilinx_spi", | 548 | .name = "xilinx_spi", |
530 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 549 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
531 | .resources = timberdale_spi_resources, | 550 | .resources = timberdale_spi_resources, |
532 | .mfd_data = &timberdale_xspi_platform_data, | 551 | .platform_data = &timberdale_xspi_platform_data, |
552 | .pdata_size = sizeof(timberdale_xspi_platform_data), | ||
533 | }, | 553 | }, |
534 | }; | 554 | }; |
535 | 555 | ||
@@ -538,7 +558,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
538 | .name = "timb-dma", | 558 | .name = "timb-dma", |
539 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 559 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
540 | .resources = timberdale_dma_resources, | 560 | .resources = timberdale_dma_resources, |
541 | .mfd_data = &timb_dma_platform_data, | 561 | .platform_data = &timb_dma_platform_data, |
562 | .pdata_size = sizeof(timb_dma_platform_data), | ||
542 | }, | 563 | }, |
543 | { | 564 | { |
544 | .name = "timb-uart", | 565 | .name = "timb-uart", |
@@ -549,37 +570,43 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
549 | .name = "ocores-i2c", | 570 | .name = "ocores-i2c", |
550 | .num_resources = ARRAY_SIZE(timberdale_ocores_resources), | 571 | .num_resources = ARRAY_SIZE(timberdale_ocores_resources), |
551 | .resources = timberdale_ocores_resources, | 572 | .resources = timberdale_ocores_resources, |
552 | .mfd_data = &timberdale_ocores_platform_data, | 573 | .platform_data = &timberdale_ocores_platform_data, |
574 | .pdata_size = sizeof(timberdale_ocores_platform_data), | ||
553 | }, | 575 | }, |
554 | { | 576 | { |
555 | .name = "timb-gpio", | 577 | .name = "timb-gpio", |
556 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 578 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
557 | .resources = timberdale_gpio_resources, | 579 | .resources = timberdale_gpio_resources, |
558 | .mfd_data = &timberdale_gpio_platform_data, | 580 | .platform_data = &timberdale_gpio_platform_data, |
581 | .pdata_size = sizeof(timberdale_gpio_platform_data), | ||
559 | }, | 582 | }, |
560 | { | 583 | { |
561 | .name = "timb-video", | 584 | .name = "timb-video", |
562 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 585 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
563 | .resources = timberdale_video_resources, | 586 | .resources = timberdale_video_resources, |
564 | .mfd_data = &timberdale_video_platform_data, | 587 | .platform_data = &timberdale_video_platform_data, |
588 | .pdata_size = sizeof(timberdale_video_platform_data), | ||
565 | }, | 589 | }, |
566 | { | 590 | { |
567 | .name = "timb-radio", | 591 | .name = "timb-radio", |
568 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 592 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
569 | .resources = timberdale_radio_resources, | 593 | .resources = timberdale_radio_resources, |
570 | .mfd_data = &timberdale_radio_platform_data, | 594 | .platform_data = &timberdale_radio_platform_data, |
595 | .pdata_size = sizeof(timberdale_radio_platform_data), | ||
571 | }, | 596 | }, |
572 | { | 597 | { |
573 | .name = "xilinx_spi", | 598 | .name = "xilinx_spi", |
574 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 599 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
575 | .resources = timberdale_spi_resources, | 600 | .resources = timberdale_spi_resources, |
576 | .mfd_data = &timberdale_xspi_platform_data, | 601 | .platform_data = &timberdale_xspi_platform_data, |
602 | .pdata_size = sizeof(timberdale_xspi_platform_data), | ||
577 | }, | 603 | }, |
578 | { | 604 | { |
579 | .name = "ks8842", | 605 | .name = "ks8842", |
580 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 606 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
581 | .resources = timberdale_eth_resources, | 607 | .resources = timberdale_eth_resources, |
582 | .mfd_data = &timberdale_ks8842_platform_data, | 608 | .platform_data = &timberdale_ks8842_platform_data, |
609 | .pdata_size = sizeof(timberdale_ks8842_platform_data), | ||
583 | }, | 610 | }, |
584 | }; | 611 | }; |
585 | 612 | ||
diff --git a/drivers/net/ks8842.c b/drivers/net/ks8842.c index f0d8346d0fa5..4d40626b3bfa 100644 --- a/drivers/net/ks8842.c +++ b/drivers/net/ks8842.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
27 | #include <linux/module.h> | 27 | #include <linux/module.h> |
28 | #include <linux/platform_device.h> | 28 | #include <linux/platform_device.h> |
29 | #include <linux/mfd/core.h> | ||
30 | #include <linux/netdevice.h> | 29 | #include <linux/netdevice.h> |
31 | #include <linux/etherdevice.h> | 30 | #include <linux/etherdevice.h> |
32 | #include <linux/ethtool.h> | 31 | #include <linux/ethtool.h> |
@@ -1146,7 +1145,7 @@ static int __devinit ks8842_probe(struct platform_device *pdev) | |||
1146 | struct resource *iomem; | 1145 | struct resource *iomem; |
1147 | struct net_device *netdev; | 1146 | struct net_device *netdev; |
1148 | struct ks8842_adapter *adapter; | 1147 | struct ks8842_adapter *adapter; |
1149 | struct ks8842_platform_data *pdata = mfd_get_data(pdev); | 1148 | struct ks8842_platform_data *pdata = pdev->dev.platform_data; |
1150 | u16 id; | 1149 | u16 id; |
1151 | unsigned i; | 1150 | unsigned i; |
1152 | 1151 | ||
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index c69c6f2c2c5c..4d2c75df886c 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/of.h> | 19 | #include <linux/of.h> |
20 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
21 | #include <linux/mfd/core.h> | ||
22 | #include <linux/spi/spi.h> | 21 | #include <linux/spi/spi.h> |
23 | #include <linux/spi/spi_bitbang.h> | 22 | #include <linux/spi/spi_bitbang.h> |
24 | #include <linux/spi/xilinx_spi.h> | 23 | #include <linux/spi/xilinx_spi.h> |
@@ -471,7 +470,7 @@ static int __devinit xilinx_spi_probe(struct platform_device *dev) | |||
471 | struct spi_master *master; | 470 | struct spi_master *master; |
472 | u8 i; | 471 | u8 i; |
473 | 472 | ||
474 | pdata = mfd_get_data(dev); | 473 | pdata = dev->dev.platform_data; |
475 | if (pdata) { | 474 | if (pdata) { |
476 | num_cs = pdata->num_chipselect; | 475 | num_cs = pdata->num_chipselect; |
477 | little_endian = pdata->little_endian; | 476 | little_endian = pdata->little_endian; |