Re: [PATCH] clk: Simplify __of_clk_get_hw_from_provider()

2016-08-26 Thread Stephen Boyd
On 08/25, Stephen Boyd wrote: > __of_clk_get_hw_from_provider() is confusing because it will > return EPROBE_DEFER if there isn't a ->get() or ->get_hw() > function pointer in a provider. That's just a bug though, and we > used to NULL pointer exception when ->get() was missing anyway, > so let's m

Re: [PATCH] clk: Simplify __of_clk_get_hw_from_provider()

2016-08-26 Thread Sylwester Nawrocki
On 08/25/2016 10:35 PM, Stephen Boyd wrote: > __of_clk_get_hw_from_provider() is confusing because it will > return EPROBE_DEFER if there isn't a ->get() or ->get_hw() > function pointer in a provider. That's just a bug though, and we > used to NULL pointer exception when ->get() was missing anyway

[PATCH] clk: Simplify __of_clk_get_hw_from_provider()

2016-08-25 Thread Stephen Boyd
__of_clk_get_hw_from_provider() is confusing because it will return EPROBE_DEFER if there isn't a ->get() or ->get_hw() function pointer in a provider. That's just a bug though, and we used to NULL pointer exception when ->get() was missing anyway, so let's make this more obvious that they're not o