[ARM] MXC: remove _clk suffix from clock names
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 16 Feb 2009 13:29:10 +0000 (14:29 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 13 Mar 2009 09:33:48 +0000 (10:33 +0100)
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>
arch/arm/mach-mx1/clock.c
arch/arm/mach-mx2/clock_imx27.c
arch/arm/mach-mx3/clock.c
arch/arm/plat-mxc/dma-mx1-mx2.c
drivers/mtd/nand/mxc_nand.c
drivers/serial/imx.c
drivers/w1/masters/mxc_w1.c

index 40a2274380a3fe71d80dc9db6511f4fbff3381fd..0d0f306851d04ca9b4e9aeeb87639a04899311b5 100644 (file)
@@ -462,7 +462,7 @@ static struct clk clko_clk = {
 };
 
 static struct clk dma_clk = {
-       .name = "dma_clk",
+       .name = "dma",
        .parent = &hclk,
        .round_rate = _clk_parent_round_rate,
        .set_rate = _clk_parent_set_rate,
@@ -513,7 +513,7 @@ static struct clk gpt_clk = {
 };
 
 static struct clk uart_clk = {
-       .name = "uart_clk",
+       .name = "uart",
        .parent = &perclk[0],
        .round_rate = _clk_parent_round_rate,
        .set_rate = _clk_parent_set_rate,
index 7b2c1122d9ab245a71016329042f290d4494f0f3..700a22f5ae88066cec742635f340a078dacd10a3 100644 (file)
@@ -685,7 +685,7 @@ static struct clk per_clk[] = {
 
 struct clk uart1_clk[] = {
        {
-               .name = "uart_clk",
+               .name = "uart",
                .id = 0,
                .parent = &per_clk[0],
                .secondary = &uart1_clk[1],
@@ -702,7 +702,7 @@ struct clk uart1_clk[] = {
 
 struct clk uart2_clk[] = {
        {
-               .name = "uart_clk",
+               .name = "uart",
                .id = 1,
                .parent = &per_clk[0],
                .secondary = &uart2_clk[1],
@@ -719,7 +719,7 @@ struct clk uart2_clk[] = {
 
 struct clk uart3_clk[] = {
        {
-               .name = "uart_clk",
+               .name = "uart",
                .id = 2,
                .parent = &per_clk[0],
                .secondary = &uart3_clk[1],
@@ -736,7 +736,7 @@ struct clk uart3_clk[] = {
 
 struct clk uart4_clk[] = {
        {
-               .name = "uart_clk",
+               .name = "uart",
                .id = 3,
                .parent = &per_clk[0],
                .secondary = &uart4_clk[1],
@@ -753,7 +753,7 @@ struct clk uart4_clk[] = {
 
 struct clk uart5_clk[] = {
        {
-               .name = "uart_clk",
+               .name = "uart",
                .id = 4,
                .parent = &per_clk[0],
                .secondary = &uart5_clk[1],
@@ -770,7 +770,7 @@ struct clk uart5_clk[] = {
 
 struct clk uart6_clk[] = {
        {
-               .name = "uart_clk",
+               .name = "uart",
                .id = 5,
                .parent = &per_clk[0],
                .secondary = &uart6_clk[1],
@@ -1110,7 +1110,7 @@ static struct clk ssi2_clk[] = {
 };
 
 static struct clk nfc_clk = {
-       .name = "nfc_clk",
+       .name = "nfc",
        .parent = &cpu_clk,
        .get_rate = _clk_nfc_recalc,
        .enable = _clk_enable,
@@ -1128,7 +1128,7 @@ static struct clk vpu_clk = {
 };
 
 static struct clk dma_clk = {
-       .name = "dma_clk",
+       .name = "dma",
        .parent = &ahb_clk,
        .enable = _clk_dma_enable,
        .disable = _clk_dma_disable,
@@ -1260,7 +1260,7 @@ static struct clk kpp_clk = {
 };
 
 static struct clk owire_clk = {
-       .name = "owire_clk",
+       .name = "owire",
        .parent = &ipg_clk,
        .enable = _clk_enable,
        .enable_reg = CCM_PCCR0,
index 8b41facb391b8acc576f22bed9252e50846bebeb..bc3a3beb9a66bb8be60cda061f4f192ec65b62d8 100644 (file)
@@ -593,7 +593,7 @@ static struct clk epit_clk[] = {
 };
 
 static struct clk nfc_clk = {
-       .name = "nfc_clk",
+       .name = "nfc",
        .parent = &ahb_clk,
        .get_rate = _clk_nfc_get_rate,
 };
@@ -667,7 +667,7 @@ static struct clk csi_clk = {
 
 static struct clk uart_clk[] = {
        {
-        .name = "uart_clk",
+        .name = "uart",
         .id = 0,
         .parent = &perclk_clk,
         .enable = _clk_enable,
@@ -675,7 +675,7 @@ static struct clk uart_clk[] = {
         .enable_shift = MXC_CCM_CGR0_UART1_OFFSET,
         .disable = _clk_disable,},
        {
-        .name = "uart_clk",
+        .name = "uart",
         .id = 1,
         .parent = &perclk_clk,
         .enable = _clk_enable,
@@ -683,7 +683,7 @@ static struct clk uart_clk[] = {
         .enable_shift = MXC_CCM_CGR0_UART2_OFFSET,
         .disable = _clk_disable,},
        {
-        .name = "uart_clk",
+        .name = "uart",
         .id = 2,
         .parent = &perclk_clk,
         .enable = _clk_enable,
@@ -691,7 +691,7 @@ static struct clk uart_clk[] = {
         .enable_shift = MXC_CCM_CGR1_UART3_OFFSET,
         .disable = _clk_disable,},
        {
-        .name = "uart_clk",
+        .name = "uart",
         .id = 3,
         .parent = &perclk_clk,
         .enable = _clk_enable,
@@ -699,7 +699,7 @@ static struct clk uart_clk[] = {
         .enable_shift = MXC_CCM_CGR1_UART4_OFFSET,
         .disable = _clk_disable,},
        {
-        .name = "uart_clk",
+        .name = "uart",
         .id = 4,
         .parent = &perclk_clk,
         .enable = _clk_enable,
@@ -736,7 +736,7 @@ static struct clk i2c_clk[] = {
 };
 
 static struct clk owire_clk = {
-       .name = "owire_clk",
+       .name = "owire",
        .parent = &perclk_clk,
        .enable_reg = MXC_CCM_CGR1,
        .enable_shift = MXC_CCM_CGR1_OWIRE_OFFSET,
index 2905ec7587589da8bcb599432e1b7b7f19fae5a6..1d64287c3078b0aba34d5282cc52735de2b3c35c 100644 (file)
@@ -802,7 +802,7 @@ static int __init imx_dma_init(void)
        int ret = 0;
        int i;
 
-       dma_clk = clk_get(NULL, "dma_clk");
+       dma_clk = clk_get(NULL, "dma");
        clk_enable(dma_clk);
 
        /* reset DMA module */
index 21fd4f1c48068fdd7dda80fd34d96502cc438e68..bad048aca89af040b48248bd7e3852365c143044 100644 (file)
@@ -880,7 +880,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
        this->read_buf = mxc_nand_read_buf;
        this->verify_buf = mxc_nand_verify_buf;
 
-       host->clk = clk_get(&pdev->dev, "nfc_clk");
+       host->clk = clk_get(&pdev->dev, "nfc");
        if (IS_ERR(host->clk))
                goto eclk;
 
index a50954612b60145e7f9eb6acc12d9f05fb8b05d8..9f460b175c50ba9eaff00a10ebdbec1f77f21f84 100644 (file)
@@ -1129,7 +1129,7 @@ static int serial_imx_probe(struct platform_device *pdev)
        sport->timer.function = imx_timeout;
        sport->timer.data     = (unsigned long)sport;
 
-       sport->clk = clk_get(&pdev->dev, "uart_clk");
+       sport->clk = clk_get(&pdev->dev, "uart");
        if (IS_ERR(sport->clk)) {
                ret = PTR_ERR(sport->clk);
                goto unmap;
index b9d74d0b353ec438c3afd0a79c24fd6e6cfe8538..65244c02551b404963ac5480b96e1bfb2f9356a0 100644 (file)
@@ -116,7 +116,7 @@ static int __init mxc_w1_probe(struct platform_device *pdev)
        if (!mdev)
                return -ENOMEM;
 
-       mdev->clk = clk_get(&pdev->dev, "owire_clk");
+       mdev->clk = clk_get(&pdev->dev, "owire");
        if (!mdev->clk) {
                err = -ENODEV;
                goto failed_clk;