Commit e65fb009 authored by Sascha Hauer's avatar Sascha Hauer

[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: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 30c730f8
...@@ -462,7 +462,7 @@ static struct clk clko_clk = { ...@@ -462,7 +462,7 @@ static struct clk clko_clk = {
}; };
static struct clk dma_clk = { static struct clk dma_clk = {
.name = "dma_clk", .name = "dma",
.parent = &hclk, .parent = &hclk,
.round_rate = _clk_parent_round_rate, .round_rate = _clk_parent_round_rate,
.set_rate = _clk_parent_set_rate, .set_rate = _clk_parent_set_rate,
...@@ -513,7 +513,7 @@ static struct clk gpt_clk = { ...@@ -513,7 +513,7 @@ static struct clk gpt_clk = {
}; };
static struct clk uart_clk = { static struct clk uart_clk = {
.name = "uart_clk", .name = "uart",
.parent = &perclk[0], .parent = &perclk[0],
.round_rate = _clk_parent_round_rate, .round_rate = _clk_parent_round_rate,
.set_rate = _clk_parent_set_rate, .set_rate = _clk_parent_set_rate,
......
...@@ -685,7 +685,7 @@ static struct clk per_clk[] = { ...@@ -685,7 +685,7 @@ static struct clk per_clk[] = {
struct clk uart1_clk[] = { struct clk uart1_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 0, .id = 0,
.parent = &per_clk[0], .parent = &per_clk[0],
.secondary = &uart1_clk[1], .secondary = &uart1_clk[1],
...@@ -702,7 +702,7 @@ struct clk uart1_clk[] = { ...@@ -702,7 +702,7 @@ struct clk uart1_clk[] = {
struct clk uart2_clk[] = { struct clk uart2_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 1, .id = 1,
.parent = &per_clk[0], .parent = &per_clk[0],
.secondary = &uart2_clk[1], .secondary = &uart2_clk[1],
...@@ -719,7 +719,7 @@ struct clk uart2_clk[] = { ...@@ -719,7 +719,7 @@ struct clk uart2_clk[] = {
struct clk uart3_clk[] = { struct clk uart3_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 2, .id = 2,
.parent = &per_clk[0], .parent = &per_clk[0],
.secondary = &uart3_clk[1], .secondary = &uart3_clk[1],
...@@ -736,7 +736,7 @@ struct clk uart3_clk[] = { ...@@ -736,7 +736,7 @@ struct clk uart3_clk[] = {
struct clk uart4_clk[] = { struct clk uart4_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 3, .id = 3,
.parent = &per_clk[0], .parent = &per_clk[0],
.secondary = &uart4_clk[1], .secondary = &uart4_clk[1],
...@@ -753,7 +753,7 @@ struct clk uart4_clk[] = { ...@@ -753,7 +753,7 @@ struct clk uart4_clk[] = {
struct clk uart5_clk[] = { struct clk uart5_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 4, .id = 4,
.parent = &per_clk[0], .parent = &per_clk[0],
.secondary = &uart5_clk[1], .secondary = &uart5_clk[1],
...@@ -770,7 +770,7 @@ struct clk uart5_clk[] = { ...@@ -770,7 +770,7 @@ struct clk uart5_clk[] = {
struct clk uart6_clk[] = { struct clk uart6_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 5, .id = 5,
.parent = &per_clk[0], .parent = &per_clk[0],
.secondary = &uart6_clk[1], .secondary = &uart6_clk[1],
...@@ -1110,7 +1110,7 @@ static struct clk ssi2_clk[] = { ...@@ -1110,7 +1110,7 @@ static struct clk ssi2_clk[] = {
}; };
static struct clk nfc_clk = { static struct clk nfc_clk = {
.name = "nfc_clk", .name = "nfc",
.parent = &cpu_clk, .parent = &cpu_clk,
.get_rate = _clk_nfc_recalc, .get_rate = _clk_nfc_recalc,
.enable = _clk_enable, .enable = _clk_enable,
...@@ -1128,7 +1128,7 @@ static struct clk vpu_clk = { ...@@ -1128,7 +1128,7 @@ static struct clk vpu_clk = {
}; };
static struct clk dma_clk = { static struct clk dma_clk = {
.name = "dma_clk", .name = "dma",
.parent = &ahb_clk, .parent = &ahb_clk,
.enable = _clk_dma_enable, .enable = _clk_dma_enable,
.disable = _clk_dma_disable, .disable = _clk_dma_disable,
...@@ -1260,7 +1260,7 @@ static struct clk kpp_clk = { ...@@ -1260,7 +1260,7 @@ static struct clk kpp_clk = {
}; };
static struct clk owire_clk = { static struct clk owire_clk = {
.name = "owire_clk", .name = "owire",
.parent = &ipg_clk, .parent = &ipg_clk,
.enable = _clk_enable, .enable = _clk_enable,
.enable_reg = CCM_PCCR0, .enable_reg = CCM_PCCR0,
......
...@@ -593,7 +593,7 @@ static struct clk epit_clk[] = { ...@@ -593,7 +593,7 @@ static struct clk epit_clk[] = {
}; };
static struct clk nfc_clk = { static struct clk nfc_clk = {
.name = "nfc_clk", .name = "nfc",
.parent = &ahb_clk, .parent = &ahb_clk,
.get_rate = _clk_nfc_get_rate, .get_rate = _clk_nfc_get_rate,
}; };
...@@ -667,7 +667,7 @@ static struct clk csi_clk = { ...@@ -667,7 +667,7 @@ static struct clk csi_clk = {
static struct clk uart_clk[] = { static struct clk uart_clk[] = {
{ {
.name = "uart_clk", .name = "uart",
.id = 0, .id = 0,
.parent = &perclk_clk, .parent = &perclk_clk,
.enable = _clk_enable, .enable = _clk_enable,
...@@ -675,7 +675,7 @@ static struct clk uart_clk[] = { ...@@ -675,7 +675,7 @@ static struct clk uart_clk[] = {
.enable_shift = MXC_CCM_CGR0_UART1_OFFSET, .enable_shift = MXC_CCM_CGR0_UART1_OFFSET,
.disable = _clk_disable,}, .disable = _clk_disable,},
{ {
.name = "uart_clk", .name = "uart",
.id = 1, .id = 1,
.parent = &perclk_clk, .parent = &perclk_clk,
.enable = _clk_enable, .enable = _clk_enable,
...@@ -683,7 +683,7 @@ static struct clk uart_clk[] = { ...@@ -683,7 +683,7 @@ static struct clk uart_clk[] = {
.enable_shift = MXC_CCM_CGR0_UART2_OFFSET, .enable_shift = MXC_CCM_CGR0_UART2_OFFSET,
.disable = _clk_disable,}, .disable = _clk_disable,},
{ {
.name = "uart_clk", .name = "uart",
.id = 2, .id = 2,
.parent = &perclk_clk, .parent = &perclk_clk,
.enable = _clk_enable, .enable = _clk_enable,
...@@ -691,7 +691,7 @@ static struct clk uart_clk[] = { ...@@ -691,7 +691,7 @@ static struct clk uart_clk[] = {
.enable_shift = MXC_CCM_CGR1_UART3_OFFSET, .enable_shift = MXC_CCM_CGR1_UART3_OFFSET,
.disable = _clk_disable,}, .disable = _clk_disable,},
{ {
.name = "uart_clk", .name = "uart",
.id = 3, .id = 3,
.parent = &perclk_clk, .parent = &perclk_clk,
.enable = _clk_enable, .enable = _clk_enable,
...@@ -699,7 +699,7 @@ static struct clk uart_clk[] = { ...@@ -699,7 +699,7 @@ static struct clk uart_clk[] = {
.enable_shift = MXC_CCM_CGR1_UART4_OFFSET, .enable_shift = MXC_CCM_CGR1_UART4_OFFSET,
.disable = _clk_disable,}, .disable = _clk_disable,},
{ {
.name = "uart_clk", .name = "uart",
.id = 4, .id = 4,
.parent = &perclk_clk, .parent = &perclk_clk,
.enable = _clk_enable, .enable = _clk_enable,
...@@ -736,7 +736,7 @@ static struct clk i2c_clk[] = { ...@@ -736,7 +736,7 @@ static struct clk i2c_clk[] = {
}; };
static struct clk owire_clk = { static struct clk owire_clk = {
.name = "owire_clk", .name = "owire",
.parent = &perclk_clk, .parent = &perclk_clk,
.enable_reg = MXC_CCM_CGR1, .enable_reg = MXC_CCM_CGR1,
.enable_shift = MXC_CCM_CGR1_OWIRE_OFFSET, .enable_shift = MXC_CCM_CGR1_OWIRE_OFFSET,
......
...@@ -802,7 +802,7 @@ static int __init imx_dma_init(void) ...@@ -802,7 +802,7 @@ static int __init imx_dma_init(void)
int ret = 0; int ret = 0;
int i; int i;
dma_clk = clk_get(NULL, "dma_clk"); dma_clk = clk_get(NULL, "dma");
clk_enable(dma_clk); clk_enable(dma_clk);
/* reset DMA module */ /* reset DMA module */
......
...@@ -880,7 +880,7 @@ static int __init mxcnd_probe(struct platform_device *pdev) ...@@ -880,7 +880,7 @@ static int __init mxcnd_probe(struct platform_device *pdev)
this->read_buf = mxc_nand_read_buf; this->read_buf = mxc_nand_read_buf;
this->verify_buf = mxc_nand_verify_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)) if (IS_ERR(host->clk))
goto eclk; goto eclk;
......
...@@ -1129,7 +1129,7 @@ static int serial_imx_probe(struct platform_device *pdev) ...@@ -1129,7 +1129,7 @@ static int serial_imx_probe(struct platform_device *pdev)
sport->timer.function = imx_timeout; sport->timer.function = imx_timeout;
sport->timer.data = (unsigned long)sport; 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)) { if (IS_ERR(sport->clk)) {
ret = PTR_ERR(sport->clk); ret = PTR_ERR(sport->clk);
goto unmap; goto unmap;
......
...@@ -116,7 +116,7 @@ static int __init mxc_w1_probe(struct platform_device *pdev) ...@@ -116,7 +116,7 @@ static int __init mxc_w1_probe(struct platform_device *pdev)
if (!mdev) if (!mdev)
return -ENOMEM; return -ENOMEM;
mdev->clk = clk_get(&pdev->dev, "owire_clk"); mdev->clk = clk_get(&pdev->dev, "owire");
if (!mdev->clk) { if (!mdev->clk) {
err = -ENODEV; err = -ENODEV;
goto failed_clk; goto failed_clk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment