diff options
author | Andres Salomon <dilinger@queued.net> | 2011-02-17 22:07:15 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-03-23 05:41:52 -0400 |
commit | e46dccff341068d8530610a822965794f70b998f (patch) | |
tree | a1f567ef8299629456f8a0309761f7d217a95006 /drivers/mfd | |
parent | 07ae2a08deb141f22d7974615bd3006e8dce3883 (diff) |
mfd: mfd_cell is now implicitly available to timberdale drivers
The cell's platform_data is now accessed with a helper function;
change clients to use that, and remove the now-unused data_size.
Note that the mfd's platform_data is marked __devinitdata. This
is still correct in all cases except for the timbgpio driver, whose
remove hook has been changed to no longer reference the pdata.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/timberdale.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index 6ad8a7f8d390..6353921c1729 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c | |||
@@ -385,7 +385,6 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
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 | .platform_data = &timb_dma_platform_data, | 387 | .platform_data = &timb_dma_platform_data, |
388 | .data_size = sizeof(timb_dma_platform_data), | ||
389 | }, | 388 | }, |
390 | { | 389 | { |
391 | .name = "timb-uart", | 390 | .name = "timb-uart", |
@@ -397,42 +396,36 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
397 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), | 396 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), |
398 | .resources = timberdale_xiic_resources, | 397 | .resources = timberdale_xiic_resources, |
399 | .platform_data = &timberdale_xiic_platform_data, | 398 | .platform_data = &timberdale_xiic_platform_data, |
400 | .data_size = sizeof(timberdale_xiic_platform_data), | ||
401 | }, | 399 | }, |
402 | { | 400 | { |
403 | .name = "timb-gpio", | 401 | .name = "timb-gpio", |
404 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 402 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
405 | .resources = timberdale_gpio_resources, | 403 | .resources = timberdale_gpio_resources, |
406 | .platform_data = &timberdale_gpio_platform_data, | 404 | .platform_data = &timberdale_gpio_platform_data, |
407 | .data_size = sizeof(timberdale_gpio_platform_data), | ||
408 | }, | 405 | }, |
409 | { | 406 | { |
410 | .name = "timb-video", | 407 | .name = "timb-video", |
411 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 408 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
412 | .resources = timberdale_video_resources, | 409 | .resources = timberdale_video_resources, |
413 | .platform_data = &timberdale_video_platform_data, | 410 | .platform_data = &timberdale_video_platform_data, |
414 | .data_size = sizeof(timberdale_video_platform_data), | ||
415 | }, | 411 | }, |
416 | { | 412 | { |
417 | .name = "timb-radio", | 413 | .name = "timb-radio", |
418 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 414 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
419 | .resources = timberdale_radio_resources, | 415 | .resources = timberdale_radio_resources, |
420 | .platform_data = &timberdale_radio_platform_data, | 416 | .platform_data = &timberdale_radio_platform_data, |
421 | .data_size = sizeof(timberdale_radio_platform_data), | ||
422 | }, | 417 | }, |
423 | { | 418 | { |
424 | .name = "xilinx_spi", | 419 | .name = "xilinx_spi", |
425 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 420 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
426 | .resources = timberdale_spi_resources, | 421 | .resources = timberdale_spi_resources, |
427 | .platform_data = &timberdale_xspi_platform_data, | 422 | .platform_data = &timberdale_xspi_platform_data, |
428 | .data_size = sizeof(timberdale_xspi_platform_data), | ||
429 | }, | 423 | }, |
430 | { | 424 | { |
431 | .name = "ks8842", | 425 | .name = "ks8842", |
432 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 426 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
433 | .resources = timberdale_eth_resources, | 427 | .resources = timberdale_eth_resources, |
434 | .platform_data = &timberdale_ks8842_platform_data, | 428 | .platform_data = &timberdale_ks8842_platform_data, |
435 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
436 | }, | 429 | }, |
437 | }; | 430 | }; |
438 | 431 | ||
@@ -442,7 +435,6 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
442 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 435 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
443 | .resources = timberdale_dma_resources, | 436 | .resources = timberdale_dma_resources, |
444 | .platform_data = &timb_dma_platform_data, | 437 | .platform_data = &timb_dma_platform_data, |
445 | .data_size = sizeof(timb_dma_platform_data), | ||
446 | }, | 438 | }, |
447 | { | 439 | { |
448 | .name = "timb-uart", | 440 | .name = "timb-uart", |
@@ -459,14 +451,12 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
459 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), | 451 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), |
460 | .resources = timberdale_xiic_resources, | 452 | .resources = timberdale_xiic_resources, |
461 | .platform_data = &timberdale_xiic_platform_data, | 453 | .platform_data = &timberdale_xiic_platform_data, |
462 | .data_size = sizeof(timberdale_xiic_platform_data), | ||
463 | }, | 454 | }, |
464 | { | 455 | { |
465 | .name = "timb-gpio", | 456 | .name = "timb-gpio", |
466 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 457 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
467 | .resources = timberdale_gpio_resources, | 458 | .resources = timberdale_gpio_resources, |
468 | .platform_data = &timberdale_gpio_platform_data, | 459 | .platform_data = &timberdale_gpio_platform_data, |
469 | .data_size = sizeof(timberdale_gpio_platform_data), | ||
470 | }, | 460 | }, |
471 | { | 461 | { |
472 | .name = "timb-mlogicore", | 462 | .name = "timb-mlogicore", |
@@ -478,28 +468,24 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
478 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 468 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
479 | .resources = timberdale_video_resources, | 469 | .resources = timberdale_video_resources, |
480 | .platform_data = &timberdale_video_platform_data, | 470 | .platform_data = &timberdale_video_platform_data, |
481 | .data_size = sizeof(timberdale_video_platform_data), | ||
482 | }, | 471 | }, |
483 | { | 472 | { |
484 | .name = "timb-radio", | 473 | .name = "timb-radio", |
485 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 474 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
486 | .resources = timberdale_radio_resources, | 475 | .resources = timberdale_radio_resources, |
487 | .platform_data = &timberdale_radio_platform_data, | 476 | .platform_data = &timberdale_radio_platform_data, |
488 | .data_size = sizeof(timberdale_radio_platform_data), | ||
489 | }, | 477 | }, |
490 | { | 478 | { |
491 | .name = "xilinx_spi", | 479 | .name = "xilinx_spi", |
492 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 480 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
493 | .resources = timberdale_spi_resources, | 481 | .resources = timberdale_spi_resources, |
494 | .platform_data = &timberdale_xspi_platform_data, | 482 | .platform_data = &timberdale_xspi_platform_data, |
495 | .data_size = sizeof(timberdale_xspi_platform_data), | ||
496 | }, | 483 | }, |
497 | { | 484 | { |
498 | .name = "ks8842", | 485 | .name = "ks8842", |
499 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 486 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
500 | .resources = timberdale_eth_resources, | 487 | .resources = timberdale_eth_resources, |
501 | .platform_data = &timberdale_ks8842_platform_data, | 488 | .platform_data = &timberdale_ks8842_platform_data, |
502 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
503 | }, | 489 | }, |
504 | }; | 490 | }; |
505 | 491 | ||
@@ -509,7 +495,6 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
509 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 495 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
510 | .resources = timberdale_dma_resources, | 496 | .resources = timberdale_dma_resources, |
511 | .platform_data = &timb_dma_platform_data, | 497 | .platform_data = &timb_dma_platform_data, |
512 | .data_size = sizeof(timb_dma_platform_data), | ||
513 | }, | 498 | }, |
514 | { | 499 | { |
515 | .name = "timb-uart", | 500 | .name = "timb-uart", |
@@ -521,35 +506,30 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
521 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), | 506 | .num_resources = ARRAY_SIZE(timberdale_xiic_resources), |
522 | .resources = timberdale_xiic_resources, | 507 | .resources = timberdale_xiic_resources, |
523 | .platform_data = &timberdale_xiic_platform_data, | 508 | .platform_data = &timberdale_xiic_platform_data, |
524 | .data_size = sizeof(timberdale_xiic_platform_data), | ||
525 | }, | 509 | }, |
526 | { | 510 | { |
527 | .name = "timb-gpio", | 511 | .name = "timb-gpio", |
528 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 512 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
529 | .resources = timberdale_gpio_resources, | 513 | .resources = timberdale_gpio_resources, |
530 | .platform_data = &timberdale_gpio_platform_data, | 514 | .platform_data = &timberdale_gpio_platform_data, |
531 | .data_size = sizeof(timberdale_gpio_platform_data), | ||
532 | }, | 515 | }, |
533 | { | 516 | { |
534 | .name = "timb-video", | 517 | .name = "timb-video", |
535 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 518 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
536 | .resources = timberdale_video_resources, | 519 | .resources = timberdale_video_resources, |
537 | .platform_data = &timberdale_video_platform_data, | 520 | .platform_data = &timberdale_video_platform_data, |
538 | .data_size = sizeof(timberdale_video_platform_data), | ||
539 | }, | 521 | }, |
540 | { | 522 | { |
541 | .name = "timb-radio", | 523 | .name = "timb-radio", |
542 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 524 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
543 | .resources = timberdale_radio_resources, | 525 | .resources = timberdale_radio_resources, |
544 | .platform_data = &timberdale_radio_platform_data, | 526 | .platform_data = &timberdale_radio_platform_data, |
545 | .data_size = sizeof(timberdale_radio_platform_data), | ||
546 | }, | 527 | }, |
547 | { | 528 | { |
548 | .name = "xilinx_spi", | 529 | .name = "xilinx_spi", |
549 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 530 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
550 | .resources = timberdale_spi_resources, | 531 | .resources = timberdale_spi_resources, |
551 | .platform_data = &timberdale_xspi_platform_data, | 532 | .platform_data = &timberdale_xspi_platform_data, |
552 | .data_size = sizeof(timberdale_xspi_platform_data), | ||
553 | }, | 533 | }, |
554 | }; | 534 | }; |
555 | 535 | ||
@@ -559,7 +539,6 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
559 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), | 539 | .num_resources = ARRAY_SIZE(timberdale_dma_resources), |
560 | .resources = timberdale_dma_resources, | 540 | .resources = timberdale_dma_resources, |
561 | .platform_data = &timb_dma_platform_data, | 541 | .platform_data = &timb_dma_platform_data, |
562 | .data_size = sizeof(timb_dma_platform_data), | ||
563 | }, | 542 | }, |
564 | { | 543 | { |
565 | .name = "timb-uart", | 544 | .name = "timb-uart", |
@@ -571,42 +550,36 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
571 | .num_resources = ARRAY_SIZE(timberdale_ocores_resources), | 550 | .num_resources = ARRAY_SIZE(timberdale_ocores_resources), |
572 | .resources = timberdale_ocores_resources, | 551 | .resources = timberdale_ocores_resources, |
573 | .platform_data = &timberdale_ocores_platform_data, | 552 | .platform_data = &timberdale_ocores_platform_data, |
574 | .data_size = sizeof(timberdale_ocores_platform_data), | ||
575 | }, | 553 | }, |
576 | { | 554 | { |
577 | .name = "timb-gpio", | 555 | .name = "timb-gpio", |
578 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), | 556 | .num_resources = ARRAY_SIZE(timberdale_gpio_resources), |
579 | .resources = timberdale_gpio_resources, | 557 | .resources = timberdale_gpio_resources, |
580 | .platform_data = &timberdale_gpio_platform_data, | 558 | .platform_data = &timberdale_gpio_platform_data, |
581 | .data_size = sizeof(timberdale_gpio_platform_data), | ||
582 | }, | 559 | }, |
583 | { | 560 | { |
584 | .name = "timb-video", | 561 | .name = "timb-video", |
585 | .num_resources = ARRAY_SIZE(timberdale_video_resources), | 562 | .num_resources = ARRAY_SIZE(timberdale_video_resources), |
586 | .resources = timberdale_video_resources, | 563 | .resources = timberdale_video_resources, |
587 | .platform_data = &timberdale_video_platform_data, | 564 | .platform_data = &timberdale_video_platform_data, |
588 | .data_size = sizeof(timberdale_video_platform_data), | ||
589 | }, | 565 | }, |
590 | { | 566 | { |
591 | .name = "timb-radio", | 567 | .name = "timb-radio", |
592 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), | 568 | .num_resources = ARRAY_SIZE(timberdale_radio_resources), |
593 | .resources = timberdale_radio_resources, | 569 | .resources = timberdale_radio_resources, |
594 | .platform_data = &timberdale_radio_platform_data, | 570 | .platform_data = &timberdale_radio_platform_data, |
595 | .data_size = sizeof(timberdale_radio_platform_data), | ||
596 | }, | 571 | }, |
597 | { | 572 | { |
598 | .name = "xilinx_spi", | 573 | .name = "xilinx_spi", |
599 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), | 574 | .num_resources = ARRAY_SIZE(timberdale_spi_resources), |
600 | .resources = timberdale_spi_resources, | 575 | .resources = timberdale_spi_resources, |
601 | .platform_data = &timberdale_xspi_platform_data, | 576 | .platform_data = &timberdale_xspi_platform_data, |
602 | .data_size = sizeof(timberdale_xspi_platform_data), | ||
603 | }, | 577 | }, |
604 | { | 578 | { |
605 | .name = "ks8842", | 579 | .name = "ks8842", |
606 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 580 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
607 | .resources = timberdale_eth_resources, | 581 | .resources = timberdale_eth_resources, |
608 | .platform_data = &timberdale_ks8842_platform_data, | 582 | .platform_data = &timberdale_ks8842_platform_data, |
609 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
610 | }, | 583 | }, |
611 | }; | 584 | }; |
612 | 585 | ||