diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-03-21 11:12:51 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-04-22 16:41:33 -0400 |
commit | f08472f298627f110fb596d7a94e2621dba1953d (patch) | |
tree | cc9cbc917ddb601e357fb746f42dad2ad2fcedf3 /arch/arm/mach-spear6xx | |
parent | 5b4f95e570dd76a4606c4bbd0dec652db8a32fd0 (diff) |
SPEAr: Use CLKDEV_INIT for defining clk_lookups
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Diffstat (limited to 'arch/arm/mach-spear6xx')
-rw-r--r-- | arch/arm/mach-spear6xx/clock.c | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/arch/arm/mach-spear6xx/clock.c b/arch/arm/mach-spear6xx/clock.c index f0518049c12e..5a469800b142 100644 --- a/arch/arm/mach-spear6xx/clock.c +++ b/arch/arm/mach-spear6xx/clock.c | |||
@@ -623,53 +623,53 @@ static struct clk dummy_apb_pclk; | |||
623 | 623 | ||
624 | /* array of all spear 6xx clock lookups */ | 624 | /* array of all spear 6xx clock lookups */ |
625 | static struct clk_lookup spear_clk_lookups[] = { | 625 | static struct clk_lookup spear_clk_lookups[] = { |
626 | { .con_id = "apb_pclk", .clk = &dummy_apb_pclk}, | 626 | CLKDEV_INIT(NULL, "apb_pclk", &dummy_apb_pclk), |
627 | /* root clks */ | 627 | /* root clks */ |
628 | { .con_id = "osc_32k_clk", .clk = &osc_32k_clk}, | 628 | CLKDEV_INIT(NULL, "osc_32k_clk", &osc_32k_clk), |
629 | { .con_id = "osc_30m_clk", .clk = &osc_30m_clk}, | 629 | CLKDEV_INIT(NULL, "osc_30m_clk", &osc_30m_clk), |
630 | /* clock derived from 32 KHz os clk */ | 630 | /* clock derived from 32 KHz os clk */ |
631 | { .dev_id = "rtc-spear", .clk = &rtc_clk}, | 631 | CLKDEV_INIT("rtc-spear", NULL, &rtc_clk), |
632 | /* clock derived from 30 MHz os clk */ | 632 | /* clock derived from 30 MHz os clk */ |
633 | { .con_id = "pll1_clk", .clk = &pll1_clk}, | 633 | CLKDEV_INIT(NULL, "pll1_clk", &pll1_clk), |
634 | { .con_id = "pll3_48m_clk", .clk = &pll3_48m_clk}, | 634 | CLKDEV_INIT(NULL, "pll3_48m_clk", &pll3_48m_clk), |
635 | { .dev_id = "wdt", .clk = &wdt_clk}, | 635 | CLKDEV_INIT("wdt", NULL, &wdt_clk), |
636 | /* clock derived from pll1 clk */ | 636 | /* clock derived from pll1 clk */ |
637 | { .con_id = "cpu_clk", .clk = &cpu_clk}, | 637 | CLKDEV_INIT(NULL, "cpu_clk", &cpu_clk), |
638 | { .con_id = "ahb_clk", .clk = &ahb_clk}, | 638 | CLKDEV_INIT(NULL, "ahb_clk", &ahb_clk), |
639 | { .con_id = "uart_synth_clk", .clk = &uart_synth_clk}, | 639 | CLKDEV_INIT(NULL, "uart_synth_clk", &uart_synth_clk), |
640 | { .con_id = "firda_synth_clk", .clk = &firda_synth_clk}, | 640 | CLKDEV_INIT(NULL, "firda_synth_clk", &firda_synth_clk), |
641 | { .con_id = "clcd_synth_clk", .clk = &clcd_synth_clk}, | 641 | CLKDEV_INIT(NULL, "clcd_synth_clk", &clcd_synth_clk), |
642 | { .con_id = "gpt0_synth_clk", .clk = &gpt0_synth_clk}, | 642 | CLKDEV_INIT(NULL, "gpt0_synth_clk", &gpt0_synth_clk), |
643 | { .con_id = "gpt2_synth_clk", .clk = &gpt2_synth_clk}, | 643 | CLKDEV_INIT(NULL, "gpt2_synth_clk", &gpt2_synth_clk), |
644 | { .con_id = "gpt3_synth_clk", .clk = &gpt3_synth_clk}, | 644 | CLKDEV_INIT(NULL, "gpt3_synth_clk", &gpt3_synth_clk), |
645 | { .dev_id = "d0000000.serial", .clk = &uart0_clk}, | 645 | CLKDEV_INIT("d0000000.serial", NULL, &uart0_clk), |
646 | { .dev_id = "d0080000.serial", .clk = &uart1_clk}, | 646 | CLKDEV_INIT("d0080000.serial", NULL, &uart1_clk), |
647 | { .dev_id = "firda", .clk = &firda_clk}, | 647 | CLKDEV_INIT("firda", NULL, &firda_clk), |
648 | { .dev_id = "clcd", .clk = &clcd_clk}, | 648 | CLKDEV_INIT("clcd", NULL, &clcd_clk), |
649 | { .dev_id = "gpt0", .clk = &gpt0_clk}, | 649 | CLKDEV_INIT("gpt0", NULL, &gpt0_clk), |
650 | { .dev_id = "gpt1", .clk = &gpt1_clk}, | 650 | CLKDEV_INIT("gpt1", NULL, &gpt1_clk), |
651 | { .dev_id = "gpt2", .clk = &gpt2_clk}, | 651 | CLKDEV_INIT("gpt2", NULL, &gpt2_clk), |
652 | { .dev_id = "gpt3", .clk = &gpt3_clk}, | 652 | CLKDEV_INIT("gpt3", NULL, &gpt3_clk), |
653 | /* clock derived from pll3 clk */ | 653 | /* clock derived from pll3 clk */ |
654 | { .dev_id = "designware_udc", .clk = &usbd_clk}, | 654 | CLKDEV_INIT("designware_udc", NULL, &usbd_clk), |
655 | { .con_id = "usbh.0_clk", .clk = &usbh0_clk}, | 655 | CLKDEV_INIT(NULL, "usbh.0_clk", &usbh0_clk), |
656 | { .con_id = "usbh.1_clk", .clk = &usbh1_clk}, | 656 | CLKDEV_INIT(NULL, "usbh.1_clk", &usbh1_clk), |
657 | /* clock derived from ahb clk */ | 657 | /* clock derived from ahb clk */ |
658 | { .con_id = "apb_clk", .clk = &apb_clk}, | 658 | CLKDEV_INIT(NULL, "apb_clk", &apb_clk), |
659 | { .dev_id = "d0200000.i2c", .clk = &i2c_clk}, | 659 | CLKDEV_INIT("d0200000.i2c", NULL, &i2c_clk), |
660 | { .dev_id = "dma", .clk = &dma_clk}, | 660 | CLKDEV_INIT("dma", NULL, &dma_clk), |
661 | { .dev_id = "jpeg", .clk = &jpeg_clk}, | 661 | CLKDEV_INIT("jpeg", NULL, &jpeg_clk), |
662 | { .dev_id = "gmac", .clk = &gmac_clk}, | 662 | CLKDEV_INIT("gmac", NULL, &gmac_clk), |
663 | { .dev_id = "fc000000.flash", .clk = &smi_clk}, | 663 | CLKDEV_INIT("fc000000.flash", NULL, &smi_clk), |
664 | { .dev_id = "d1800000.flash", .clk = &fsmc_clk}, | 664 | CLKDEV_INIT("d1800000.flash", NULL, &fsmc_clk), |
665 | /* clock derived from apb clk */ | 665 | /* clock derived from apb clk */ |
666 | { .dev_id = "adc", .clk = &adc_clk}, | 666 | CLKDEV_INIT("adc", NULL, &adc_clk), |
667 | { .dev_id = "ssp-pl022.0", .clk = &ssp0_clk}, | 667 | CLKDEV_INIT("ssp-pl022.0", NULL, &ssp0_clk), |
668 | { .dev_id = "ssp-pl022.1", .clk = &ssp1_clk}, | 668 | CLKDEV_INIT("ssp-pl022.1", NULL, &ssp1_clk), |
669 | { .dev_id = "ssp-pl022.2", .clk = &ssp2_clk}, | 669 | CLKDEV_INIT("ssp-pl022.2", NULL, &ssp2_clk), |
670 | { .dev_id = "f0100000.gpio", .clk = &gpio0_clk}, | 670 | CLKDEV_INIT("f0100000.gpio", NULL, &gpio0_clk), |
671 | { .dev_id = "fc980000.gpio", .clk = &gpio1_clk}, | 671 | CLKDEV_INIT("fc980000.gpio", NULL, &gpio1_clk), |
672 | { .dev_id = "d8100000.gpio", .clk = &gpio2_clk}, | 672 | CLKDEV_INIT("d8100000.gpio", NULL, &gpio2_clk), |
673 | }; | 673 | }; |
674 | 674 | ||
675 | void __init spear6xx_clk_init(void) | 675 | void __init spear6xx_clk_init(void) |