clk: at91: usb: introduce num_parents in driver's structure
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 17 Jan 2020 11:36:49 +0000 (13:36 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 12 Feb 2020 23:31:47 +0000 (15:31 -0800)
commit9962fb0d19958215b5bc6b9279f824b55aabdec2
tree43cc3843227650c77daffd0c4dd417e613b47403
parentd7a83d67a1694c42cc95fc0755d823f7ca3bfcfb
clk: at91: usb: introduce num_parents in driver's structure

SAM9X60 USB clock may have up to 3 parents. Save the number of parents in
driver's data structure and validate against it when setting parent.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lkml.kernel.org/r/1579261009-4573-5-git-send-email-claudiu.beznea@microchip.com
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/at91/clk-usb.c