[PATCH] clk: fix compile for OF && !COMMON_CLK

Rajendra Nayak rnayak at ti.com
Tue Jul 17 09:34:13 EDT 2012


On Tuesday 17 July 2012 06:49 PM, Rajendra Nayak wrote:
> struct clk *clk_get(struct device *dev, const char *con_id)
> {
>          const char *dev_id = dev ? dev_name(dev) : NULL;
>          struct clk *clk;
>
>          if (dev) {
> ---->
>      Any reason why this isn't
>      if (dev->of_node) {
> ---->

Or rather,
	if (dev && dev->of_node) {
as Archit just pointed out to me.



More information about the linux-arm-kernel mailing list