ARM i.MX53: clk: change cspi_ipg_gate device name
Subsystems (3)
PATCH 1/1 ARM i.MX53: clk: change cspi_ipg_gate device name
The cspi is compatible to the imx35 one. imx51-dt.c, imx53-dt.c, imx53.dtsi and imx51.dtsi already reflect this fact. But as the clock driver is not registered accordingly, spi-imx can not probe for the device, as it can not find the clock device and return with an error.
A rename of the clock device fixes this.
--- arch/arm/mach-imx/clk-imx51-imx53.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/clk-imx51-imx53.c +1 -1
@@ -248,7 +248,7 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,clk_register_clkdev (clk[ecspi1_ipg_gate],"ipg" ,"imx51-ecspi.0" );clk_register_clkdev (clk[ecspi2_per_gate],"per" ,"imx51-ecspi.1" );clk_register_clkdev (clk[ecspi2_ipg_gate],"ipg" ,"imx51-ecspi.1" ); -clk_register_clkdev (clk[cspi_ipg_gate],NULL ,"imx51-cspi.0" ); +clk_register_clkdev (clk[cspi_ipg_gate],NULL ,"imx35-cspi.0" );clk_register_clkdev (clk[pwm1_ipg_gate],"pwm" ,"mxc_pwm.0" );clk_register_clkdev (clk[pwm2_ipg_gate],"pwm" ,"mxc_pwm.1" );clk_register_clkdev (clk[i2c1_gate],NULL ,"imx-i2c.0" );
Sascha Hauer
maintainerPATCH 1/1 ARM i.MX53: clk: change cspi_ipg_gate device name
Quoted 6 lines · Steffen Trumtrar
The cspi is compatible to the imx35 one.
imx51-dt.c,imx53-dt.c,imx53.dtsiandimx51.dtsialready reflect this fact. But as the clock driver is not registered accordingly, spi-imx can not probe for the device, as it can not find the clock device and return with an error.
A rename of the clock device fixes this.
I applied the version from Alexander instead which is more consistent with i.MX51 cspi support.
Sascha
Quoted 19 lines
Signed-off-by Steffen Trumtrar <[email protected]>--- arch/arm/mach-imx/clk-imx51-imx53.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-imx/clk-imx51-imx53.c +1
-1@@ -248,7 +248,7 @@ static void __init mx5_clocks_common_init(unsigned long rate_ckil,clk_register_clkdev (clk[ecspi1_ipg_gate],"ipg" ,"imx51-ecspi.0" );clk_register_clkdev (clk[ecspi2_per_gate],"per" ,"imx51-ecspi.1" );clk_register_clkdev (clk[ecspi2_ipg_gate],"ipg" ,"imx51-ecspi.1" ); -clk_register_clkdev (clk[cspi_ipg_gate],NULL ,"imx51-cspi.0" ); +clk_register_clkdev (clk[cspi_ipg_gate],NULL ,"imx35-cspi.0" );clk_register_clkdev (clk[pwm1_ipg_gate],"pwm" ,"mxc_pwm.0" );clk_register_clkdev (clk[pwm2_ipg_gate],"pwm" ,"mxc_pwm.1" );clk_register_clkdev (clk[i2c1_gate],NULL ,"imx-i2c.0" );
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |