diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-03-05 16:17:53 +0100 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-03-19 09:20:39 +0100 |
commit | c68ffddabcaaa64c6ea681d2944cbda50a8654ea (patch) | |
tree | 902543d60f5731206b4aaa0a58be7d17a6b06881 /arch/arm/mach-pxa/tosa.c | |
parent | [ARM] pxa: add missing pin function for CS2 on GPIO1 (diff) | |
download | linux-c68ffddabcaaa64c6ea681d2944cbda50a8654ea.tar.xz linux-c68ffddabcaaa64c6ea681d2944cbda50a8654ea.zip |
[ARM] pxa: make second argument of clk_add_alias a name instead of the device
clk_add_alias is commonly called for platform devices that are not yet
registered in the device tree. Thus the clock alias is associated with
NULL device name. Fix this by passing the device name instead of just
device pointer.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/tosa.c')
-rw-r--r-- | arch/arm/mach-pxa/tosa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c index 3332e5d0356c..3fe137fc72d2 100644 --- a/arch/arm/mach-pxa/tosa.c +++ b/arch/arm/mach-pxa/tosa.c @@ -919,7 +919,7 @@ static void __init tosa_init(void) pxa2xx_set_spi_info(2, &pxa_ssp_master_info); spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); - clk_add_alias("CLK_CK3P6MI", &tc6393xb_device.dev, "GPIO11_CLK", NULL); + clk_add_alias("CLK_CK3P6MI", tc6393xb_device.name, "GPIO11_CLK", NULL); platform_add_devices(devices, ARRAY_SIZE(devices)); } |