Skip to content

Commit 38a929a

Browse files
bijudasbebarino
authored andcommitted
clk: rs9: 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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent b28f95c commit 38a929a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-renesas-pcie.c

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

299299
i2c_set_clientdata(client, rs9);
300300
rs9->client = client;
301-
rs9->chip_info = device_get_match_data(&client->dev);
301+
rs9->chip_info = i2c_get_match_data(client);
302302
if (!rs9->chip_info)
303303
return -EINVAL;
304304

0 commit comments

Comments
 (0)