clk: si5351: Simplify probe
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 9 Sep 2023 16:20:47 +0000 (17:20 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 24 Oct 2023 02:36:53 +0000 (19:36 -0700)
commitf234f028727f8634973f8a9ef2ec933eb0eade5b
treebdd6f70eeb772262f72034c0bf0923706b079fd5
parent38a929ab128d7f0ac61f7cb506e6687d145b9eba
clk: si5351: Simplify probe

The driver has an OF match table, still, it uses an ID lookup table for
retrieving match data. Currently, the driver is working on the
assumption that an I2C device registered via OF will always match a
legacy I2C device ID. The correct approach is to have an OF device ID
table using i2c_get_match_data() if the devices are registered via OF/ID.

Simplify probe() by replacing ID lookup table for retrieving match data
with i2c_get_match_data().

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230909162047.41845-1-biju.das.jz@bp.renesas.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-si5351.c