Skip to content

Commit ebcae17

Browse files
bijudasbebarino
authored andcommitted
clk: si521xx: 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 bbc5080 commit ebcae17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-si521xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ si521xx_of_clk_get(struct of_phandle_args *clkspec, void *data)
279279

280280
static int si521xx_probe(struct i2c_client *client)
281281
{
282-
const u16 chip_info = (u16)(uintptr_t)device_get_match_data(&client->dev);
282+
const u16 chip_info = (u16)(uintptr_t)i2c_get_match_data(client);
283283
const struct clk_parent_data clk_parent_data = { .index = 0 };
284284
struct si521xx *si;
285285
unsigned char name[6] = "DIFF0";

0 commit comments

Comments
 (0)