Stephen Boyd 74002fcde0 clk: Simplify __of_clk_get_hw_from_provider()
__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 optional. The
assumption is that most providers will implement ->get_hw() so we
only fallback to the ->get() function if necessary. This
clarifies the intent and removes any possibility of probe defer
happening if clk providers are buggy.

Reported-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2016-08-26 12:28:27 -07:00
..
2016-08-19 12:53:43 -07:00
2016-04-15 16:50:01 -07:00
2016-03-02 17:44:59 -08:00
2016-04-15 16:50:04 -07:00
2016-03-02 17:46:55 -08:00
2016-08-01 18:37:45 -04:00
2016-07-12 11:24:07 +02:00
2016-04-15 16:50:07 -07:00
2016-03-02 17:48:26 -08:00
2016-07-06 17:55:31 -07:00
2016-04-15 16:50:27 -07:00