diff options
Diffstat (limited to 'drivers/mfd/timberdale.c')
-rw-r--r-- | drivers/mfd/timberdale.c | 81 |
1 files changed, 27 insertions, 54 deletions
diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index 6ad8a7f8d390..94c6c8afad12 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c | |||
@@ -384,8 +384,7 @@ 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 | .platform_data = &timb_dma_platform_data, | 387 | .mfd_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", |
@@ -396,43 +395,37 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
396 | .name = "xiic-i2c", | 395 | .name = "xiic-i2c", |
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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_data = &timberdale_ks8842_platform_data, |
435 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
436 | }, | 429 | }, |
437 | }; | 430 | }; |
438 | 431 | ||
@@ -441,8 +434,7 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
441 | .name = "timb-dma", | 434 | .name = "timb-dma", |
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 | .mfd_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", |
@@ -458,15 +450,13 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
458 | .name = "xiic-i2c", | 450 | .name = "xiic-i2c", |
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 | .mfd_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 | .mfd_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", |
@@ -477,29 +467,25 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
477 | .name = "timb-video", | 467 | .name = "timb-video", |
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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_data = &timberdale_ks8842_platform_data, |
502 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
503 | }, | 489 | }, |
504 | }; | 490 | }; |
505 | 491 | ||
@@ -508,8 +494,7 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
508 | .name = "timb-dma", | 494 | .name = "timb-dma", |
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 | .mfd_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", |
@@ -520,36 +505,31 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg2[] = { | |||
520 | .name = "xiic-i2c", | 505 | .name = "xiic-i2c", |
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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_data = &timberdale_xspi_platform_data, |
552 | .data_size = sizeof(timberdale_xspi_platform_data), | ||
553 | }, | 533 | }, |
554 | }; | 534 | }; |
555 | 535 | ||
@@ -558,8 +538,7 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
558 | .name = "timb-dma", | 538 | .name = "timb-dma", |
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 | .mfd_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", |
@@ -570,43 +549,37 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
570 | .name = "ocores-i2c", | 549 | .name = "ocores-i2c", |
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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_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 | .mfd_data = &timberdale_ks8842_platform_data, |
609 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
610 | }, | 583 | }, |
611 | }; | 584 | }; |
612 | 585 | ||