mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
clk: at91: main: Drop unneeded cast in at91_clk_register_main_osc()
When assigning a non-const pointer to a const pointer, no cast is needed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> Reviewed-by: Brian Masney <bmasney@redhat.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/51abd9177801984889c2a0c321ea8587677178c8.1787316176.git.geert+renesas@glider.be Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
This commit is contained in:
parent
cee9395acd
commit
77cccf570d
|
|
@ -170,7 +170,7 @@ at91_clk_register_main_osc(struct regmap *regmap,
|
|||
init.name = name;
|
||||
init.ops = &main_osc_ops;
|
||||
if (parent_data)
|
||||
init.parent_data = (const struct clk_parent_data *)parent_data;
|
||||
init.parent_data = parent_data;
|
||||
else
|
||||
init.parent_names = &parent_name;
|
||||
init.num_parents = 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user