* [PATCH v2] i2c: rk3x: add Kconfig dependency on COMMON_CLK
@ 2014-11-24 9:46 Max Schwarz
2014-11-24 9:50 ` Uwe Kleine-König
0 siblings, 1 reply; 2+ messages in thread
From: Max Schwarz @ 2014-11-24 9:46 UTC (permalink / raw)
To: Wolfram Sang
Cc: Doug Anderson, Linux I2C, Jean Delvare, Heiko Stübner,
Uwe Kleine-König
Fixes: 5a6f1566f6a0 ("i2c: rk3x: handle dynamic clock rate changes correctly")
which introduced a dependency on clock rate notifiers. Now we get compiler
errors if compiled without COMMON_CLK:
drivers/i2c/busses/i2c-rk3x.c: In function 'rk3x_i2c_clk_notifier_cb':
drivers/i2c/busses/i2c-rk3x.c:634:7: error: 'PRE_RATE_CHANGE' undeclared (first use in this function)
[...]
But the driver has always depended on COMMON_CLK even if it compiled
- in fact it fails to probe without it. So add that as a Kconfig
dependency.
Signed-off-by: Max Schwarz <max.schwarz-BGeptl67XyCzQB+pC5nmwQ@public.gmane.org>
---
Wolfram,
here is a version with better commit msg in case you still want to take that
instead of my quick fix.
Uwe, thanks for your comments!
Cheers,
Max
drivers/i2c/busses/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index a940e33..bb66119 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -720,7 +720,7 @@ config I2C_RIIC
config I2C_RK3X
tristate "Rockchip RK3xxx I2C adapter"
- depends on OF
+ depends on OF && COMMON_CLK
help
Say Y here to include support for the I2C adapter in Rockchip RK3xxx
SoCs.
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] i2c: rk3x: add Kconfig dependency on COMMON_CLK
2014-11-24 9:46 [PATCH v2] i2c: rk3x: add Kconfig dependency on COMMON_CLK Max Schwarz
@ 2014-11-24 9:50 ` Uwe Kleine-König
0 siblings, 0 replies; 2+ messages in thread
From: Uwe Kleine-König @ 2014-11-24 9:50 UTC (permalink / raw)
To: Max Schwarz
Cc: Wolfram Sang, Doug Anderson, Linux I2C, Jean Delvare,
Heiko Stübner
On Mon, Nov 24, 2014 at 10:46:25AM +0100, Max Schwarz wrote:
> Fixes: 5a6f1566f6a0 ("i2c: rk3x: handle dynamic clock rate changes correctly")
This line usually goes into the S-o-B block below. So maybe:
Commit 5a6f1566f6a0 ("i2c: rk3x: handle dynamic clock rate changes
correctly") introduced a dependency ...
and then the Fixes line above your S-o-b.
>
> which introduced a dependency on clock rate notifiers. Now we get compiler
> errors if compiled without COMMON_CLK:
>
> drivers/i2c/busses/i2c-rk3x.c: In function 'rk3x_i2c_clk_notifier_cb':
> drivers/i2c/busses/i2c-rk3x.c:634:7: error: 'PRE_RATE_CHANGE' undeclared (first use in this function)
> [...]
>
> But the driver has always depended on COMMON_CLK even if it compiled
> - in fact it fails to probe without it. So add that as a Kconfig
> dependency.
>
> Signed-off-by: Max Schwarz <max.schwarz-BGeptl67XyCzQB+pC5nmwQ@public.gmane.org>
> ---
>
> Wolfram,
>
> here is a version with better commit msg in case you still want to take that
> instead of my quick fix.
Thanks for your quick turn around.
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-24 9:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 9:46 [PATCH v2] i2c: rk3x: add Kconfig dependency on COMMON_CLK Max Schwarz
2014-11-24 9:50 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).