[PATCH 5/9] MIPS: AR7: allow NULL clock for clk_get_rate

2017-07-18 Thread Jonas Gorski
Make the behaviour of clk_get_rate consistent with common clk's clk_get_rate by accepting NULL clocks as parameter. Some device drivers rely on this, and will cause an OOPS otherwise. Fixes: 780019ddf02f ("MIPS: AR7: Implement clock API") Cc: Ralf Baechle Cc: Paul Gortmaker

[PATCH 5/9] MIPS: AR7: allow NULL clock for clk_get_rate

2017-07-18 Thread Jonas Gorski
Make the behaviour of clk_get_rate consistent with common clk's clk_get_rate by accepting NULL clocks as parameter. Some device drivers rely on this, and will cause an OOPS otherwise. Fixes: 780019ddf02f ("MIPS: AR7: Implement clock API") Cc: Ralf Baechle Cc: Paul Gortmaker Cc: James Hogan Cc: