aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-02-16 08:29:10 -0500
committerSascha Hauer <s.hauer@pengutronix.de>2009-03-13 05:33:48 -0400
commite65fb0099fe4fe82d59ffe84f1e88a489218d7f9 (patch)
treeb35665ffe6e939961cc4aaa4f9bf2e1887d3f7a6
parent30c730f8f90b08d77a73998d2ee34cf1f56e95cc (diff)
[ARM] MXC: remove _clk suffix from clock names
The context makes it clear already that these are clocks, so there's no need for such a suffix. This patch only changes the clocks actually used in the tree. The remaining clocks are renamed in the subsequent architecture specific patches. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-mx1/clock.c4
-rw-r--r--arch/arm/mach-mx2/clock_imx27.c18
-rw-r--r--arch/arm/mach-mx3/clock.c14
-rw-r--r--arch/arm/plat-mxc/dma-mx1-mx2.c2
-rw-r--r--drivers/mtd/nand/mxc_nand.c2
-rw-r--r--drivers/serial/imx.c2
-rw-r--r--drivers/w1/masters/mxc_w1.c2
7 files changed, 22 insertions, 22 deletions
diff --git a/arch/arm/mach-mx1/clock.c b/arch/arm/mach-mx1/clock.c
index 40a2274380a3..0d0f306851d0 100644
--- a/arch/arm/mach-mx1/clock.c
+++ b/arch/arm/mach-mx1/clock.c
@@ -462,7 +462,7 @@ static struct clk clko_clk = {
462}; 462};
463 463
464static struct clk dma_clk = { 464static struct clk dma_clk = {
465 .name = "dma_clk", 465 .name = "dma",
466 .parent = &hclk, 466 .parent = &hclk,
467 .round_rate = _clk_parent_round_rate, 467 .round_rate = _clk_parent_round_rate,
468 .set_rate = _clk_parent_set_rate, 468 .set_rate = _clk_parent_set_rate,
@@ -513,7 +513,7 @@ static struct clk gpt_clk = {
513}; 513};
514 514
515static struct clk uart_clk = { 515static struct clk uart_clk = {
516 .name = "uart_clk", 516 .name = "uart",
517 .parent = &perclk[0], 517 .parent = &perclk[0],
518 .round_rate = _clk_parent_round_rate, 518 .round_rate = _clk_parent_round_rate,
519 .set_rate = _clk_parent_set_rate, 519 .set_rate = _clk_parent_set_rate,
diff --git a/arch/arm/mach-mx2/clock_imx27.c b/arch/arm/mach-mx2/clock_imx27.c
index 7b2c1122d9ab..700a22f5ae88 100644
--- a/arch/arm/mach-mx2/clock_imx27.c
+++ b/arch/arm/mach-mx2/clock_imx27.c
@@ -685,7 +685,7 @@ static struct clk per_clk[] = {
685 685
686struct clk uart1_clk[] = { 686struct clk uart1_clk[] = {
687 { 687 {
688 .name = "uart_clk", 688 .name = "uart",
689 .id = 0, 689 .id = 0,
690 .parent = &per_clk[0], 690 .parent = &per_clk[0],
691 .secondary = &uart1_clk[1], 691 .secondary = &uart1_clk[1],
@@ -702,7 +702,7 @@ struct clk uart1_clk[] = {
702 702
703struct clk uart2_clk[] = { 703struct clk uart2_clk[] = {
704 { 704 {
705 .name = "uart_clk", 705 .name = "uart",
706 .id = 1, 706 .id = 1,
707 .parent = &per_clk[0], 707 .parent = &per_clk[0],
708 .secondary = &uart2_clk[1], 708 .secondary = &uart2_clk[1],
@@ -719,7 +719,7 @@ struct clk uart2_clk[] = {
719 719
720struct clk uart3_clk[] = { 720struct clk uart3_clk[] = {
721 { 721 {
722 .name = "uart_clk", 722 .name = "uart",
723 .id = 2, 723 .id = 2,
724 .parent = &per_clk[0], 724 .parent = &per_clk[0],
725 .secondary = &uart3_clk[1], 725 .secondary = &uart3_clk[1],
@@ -736,7 +736,7 @@ struct clk uart3_clk[] = {
736 736
737struct clk uart4_clk[] = { 737struct clk uart4_clk[] = {
738 { 738 {
739 .name = "uart_clk", 739 .name = "uart",
740 .id = 3, 740 .id = 3,
741 .parent = &per_clk[0], 741 .parent = &per_clk[0],
742 .secondary = &uart4_clk[1], 742 .secondary = &uart4_clk[1],
@@ -753,7 +753,7 @@ struct clk uart4_clk[] = {
753 753
754struct clk uart5_clk[] = { 754struct clk uart5_clk[] = {
755 { 755 {
756 .name = "uart_clk", 756 .name = "uart",
757 .id = 4, 757 .id = 4,
758 .parent = &per_clk[0], 758 .parent = &per_clk[0],
759 .secondary = &uart5_clk[1], 759 .secondary = &uart5_clk[1],
@@ -770,7 +770,7 @@ struct clk uart5_clk[] = {
770 770
771struct clk uart6_clk[] = { 771struct clk uart6_clk[] = {
772 { 772 {
773 .name = "uart_clk", 773 .name = "uart",
774 .id = 5, 774 .id = 5,
775 .parent = &per_clk[0], 775 .parent = &per_clk[0],
776 .secondary = &uart6_clk[1], 776 .secondary = &uart6_clk[1],
@@ -1110,7 +1110,7 @@ static struct clk ssi2_clk[] = {
1110}; 1110};
1111 1111
1112static struct clk nfc_clk = { 1112static struct clk nfc_clk = {
1113 .name = "nfc_clk", 1113 .name = "nfc",
1114 .parent = &cpu_clk, 1114 .parent = &cpu_clk,
1115 .get_rate = _clk_nfc_recalc, 1115 .get_rate = _clk_nfc_recalc,
1116 .enable = _clk_enable, 1116 .enable = _clk_enable,
@@ -1128,7 +1128,7 @@ static struct clk vpu_clk = {
1128}; 1128};
1129 1129
1130static struct clk dma_clk = { 1130static struct clk dma_clk = {
1131 .name = "dma_clk", 1131 .name = "dma",
1132 .parent = &ahb_clk, 1132 .parent = &ahb_clk,
1133 .enable = _clk_dma_enable, 1133 .enable = _clk_dma_enable,
1134 .disable = _clk_dma_disable, 1134 .disable = _clk_dma_disable,
@@ -1260,7 +1260,7 @@ static struct clk kpp_clk = {
1260}; 1260};
1261 1261
1262static struct clk owire_clk = { 1262static struct clk owire_clk = {
1263 .name = "owire_clk", 1263 .name = "owire",
1264 .parent = &ipg_clk, 1264 .parent = &ipg_clk,
1265 .enable = _clk_enable, 1265 .enable = _clk_enable,
1266 .enable_reg = CCM_PCCR0, 1266 .enable_reg = CCM_PCCR0,
diff --git a/arch/arm/mach-mx3/clock.c b/arch/arm/mach-mx3/clock.c
index 8b41facb391b..bc3a3beb9a66 100644
--- a/arch/arm/mach-mx3/clock.c
+++ b/arch/arm/mach-mx3/clock.c
@@ -593,7 +593,7 @@ static struct clk epit_clk[] = {
593}; 593};
594 594
595static struct clk nfc_clk = { 595static struct clk nfc_clk = {
596 .name = "nfc_clk", 596 .name = "nfc",
597 .parent = &ahb_clk, 597 .parent = &ahb_clk,
598 .get_rate = _clk_nfc_get_rate, 598 .get_rate = _clk_nfc_get_rate,
599}; 599};
@@ -667,7 +667,7 @@ static struct clk csi_clk = {
667 667
668static struct clk uart_clk[] = { 668static struct clk uart_clk[] = {
669 { 669 {
670 .name = "uart_clk", 670 .name = "uart",
671 .id = 0, 671 .id = 0,
672 .parent = &perclk_clk, 672 .parent = &perclk_clk,
673 .enable = _clk_enable, 673 .enable = _clk_enable,
@@ -675,7 +675,7 @@ static struct clk uart_clk[] = {
675 .enable_shift = MXC_CCM_CGR0_UART1_OFFSET, 675 .enable_shift = MXC_CCM_CGR0_UART1_OFFSET,
676 .disable = _clk_disable,}, 676 .disable = _clk_disable,},
677 { 677 {
678 .name = "uart_clk", 678 .name = "uart",
679 .id = 1, 679 .id = 1,
680 .parent = &perclk_clk, 680 .parent = &perclk_clk,
681 .enable = _clk_enable, 681 .enable = _clk_enable,
@@ -683,7 +683,7 @@ static struct clk uart_clk[] = {
683 .enable_shift = MXC_CCM_CGR0_UART2_OFFSET, 683 .enable_shift = MXC_CCM_CGR0_UART2_OFFSET,
684 .disable = _clk_disable,}, 684 .disable = _clk_disable,},
685 { 685 {
686 .name = "uart_clk", 686 .name = "uart",
687 .id = 2, 687 .id = 2,
688 .parent = &perclk_clk, 688 .parent = &perclk_clk,
689 .enable = _clk_enable, 689 .enable = _clk_enable,
@@ -691,7 +691,7 @@ static struct clk uart_clk[] = {
691 .enable_shift = MXC_CCM_CGR1_UART3_OFFSET, 691 .enable_shift = MXC_CCM_CGR1_UART3_OFFSET,
692 .disable = _clk_disable,}, 692 .disable = _clk_disable,},
693 { 693 {
694 .name = "uart_clk", 694 .name = "uart",
695 .id = 3, 695 .id = 3,
696 .parent = &perclk_clk, 696 .parent = &perclk_clk,
697 .enable = _clk_enable, 697 .enable = _clk_enable,
@@ -699,7 +699,7 @@ static struct clk uart_clk[] = {
699 .enable_shift = MXC_CCM_CGR1_UART4_OFFSET, 699 .enable_shift = MXC_CCM_CGR1_UART4_OFFSET,
700 .disable = _clk_disable,}, 700 .disable = _clk_disable,},
701 { 701 {
702 .name = "uart_clk", 702 .name = "uart",
703 .id = 4, 703 .id = 4,
704 .parent = &perclk_clk, 704 .parent = &perclk_clk,
705 .enable = _clk_enable, 705 .enable = _clk_enable,
@@ -736,7 +736,7 @@ static struct clk i2c_clk[] = {
736}; 736};
737 737
738static struct clk owire_clk = { 738static struct clk owire_clk = {
739 .name = "owire_clk", 739 .name = "owire",
740 .parent = &perclk_clk, 740 .parent = &perclk_clk,
741 .enable_reg = MXC_CCM_CGR1, 741 .enable_reg = MXC_CCM_CGR1,
742 .enable_shift = MXC_CCM_CGR1_OWIRE_OFFSET, 742 .enable_shift = MXC_CCM_CGR1_OWIRE_OFFSET,
diff --git a/arch/arm/plat-mxc/dma-mx1-mx2.c b/arch/arm/plat-mxc/dma-mx1-mx2.c
index 2905ec758758..1d64287c3078 100644
--- a/arch/arm/plat-mxc/dma-mx1-mx2.c
+++ b/arch/arm/plat-mxc/dma-mx1-mx2.c
@@ -802,7 +802,7 @@ static int __init imx_dma_init(void)
802 int ret = 0; 802 int ret = 0;
803 int i; 803 int i;
804 804
805 dma_clk = clk_get(NULL, "dma_clk"); 805 dma_clk = clk_get(NULL, "dma");
806 clk_enable(dma_clk); 806 clk_enable(dma_clk);
807 807
808 /* reset DMA module */ 808 /* reset DMA module */
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 21fd4f1c4806..bad048aca89a 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -880,7 +880,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
880 this->read_buf = mxc_nand_read_buf; 880 this->read_buf = mxc_nand_read_buf;
881 this->verify_buf = mxc_nand_verify_buf; 881 this->verify_buf = mxc_nand_verify_buf;
882 882
883 host->clk = clk_get(&pdev->dev, "nfc_clk"); 883 host->clk = clk_get(&pdev->dev, "nfc");
884 if (IS_ERR(host->clk)) 884 if (IS_ERR(host->clk))
885 goto eclk; 885 goto eclk;
886 886
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c
index a50954612b60..9f460b175c50 100644
--- a/drivers/serial/imx.c
+++ b/drivers/serial/imx.c
@@ -1129,7 +1129,7 @@ static int serial_imx_probe(struct platform_device *pdev)
1129 sport->timer.function = imx_timeout; 1129 sport->timer.function = imx_timeout;
1130 sport->timer.data = (unsigned long)sport; 1130 sport->timer.data = (unsigned long)sport;
1131 1131
1132 sport->clk = clk_get(&pdev->dev, "uart_clk"); 1132 sport->clk = clk_get(&pdev->dev, "uart");
1133 if (IS_ERR(sport->clk)) { 1133 if (IS_ERR(sport->clk)) {
1134 ret = PTR_ERR(sport->clk); 1134 ret = PTR_ERR(sport->clk);
1135 goto unmap; 1135 goto unmap;
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
index b9d74d0b353e..65244c02551b 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -116,7 +116,7 @@ static int __init mxc_w1_probe(struct platform_device *pdev)
116 if (!mdev) 116 if (!mdev)
117 return -ENOMEM; 117 return -ENOMEM;
118 118
119 mdev->clk = clk_get(&pdev->dev, "owire_clk"); 119 mdev->clk = clk_get(&pdev->dev, "owire");
120 if (!mdev->clk) { 120 if (!mdev->clk) {
121 err = -ENODEV; 121 err = -ENODEV;
122 goto failed_clk; 122 goto failed_clk;