Skip to content

Commit 0894f0b

Browse files
bijudasbebarino
authored andcommitted
clk: vc5: Use i2c_get_match_data() instead of device_get_match_data()
The device_get_match_data(), is to get match data for firmware interfaces such as just OF/ACPI. This driver has I2C matching table as well. Use i2c_get_match_data() to get match data for I2C, ACPI and DT-based matching. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Luca Ceresoli <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent a53ef05 commit 0894f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-versaclock5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ static int vc5_probe(struct i2c_client *client)
956956

957957
i2c_set_clientdata(client, vc5);
958958
vc5->client = client;
959-
vc5->chip_info = device_get_match_data(&client->dev);
959+
vc5->chip_info = i2c_get_match_data(client);
960960

961961
vc5->pin_xin = devm_clk_get(&client->dev, "xin");
962962
if (PTR_ERR(vc5->pin_xin) == -EPROBE_DEFER)

0 commit comments

Comments
 (0)