]> git.baikalelectronics.ru Git - kernel.git/commit
clk: at91: pmc: do not continue if compatible not located
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Sun, 3 May 2020 12:18:08 +0000 (15:18 +0300)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 03:22:02 +0000 (20:22 -0700)
commit74a17ca67f57a98ec74f4977e8ebc653c301ec11
treef6ce4bcaea581f5e4a3ce6e4ca59f60fbbf11caa
parentee757c369bea5d92d0c3687edb22950a99250036
clk: at91: pmc: do not continue if compatible not located

pmc_register_ops() is called for all AT91 devices. Return
-ENODEV in case of_find_matching_node() returns NULL.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lkml.kernel.org/r/1588508289-10140-1-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/pmc.c