Skip to content

Commit b5e10be

Browse files
Marek Vasutbebarino
authored andcommitted
clk: vc7: Fix .driver_data content in i2c_device_id
The .driver_data content in i2c_device_id table must match the .data content in of_device_id table, else device_get_match_data() would return bogus value on i2c_device_id match. Align the two tables. The i2c_device_id table is now converted from of_device_id using '[email protected] = "renesas,\([^"]\+"\), .data = \(.*\)@"\1, .driver_data = (kernel_ulong_t)\2@' Fixes: 48c5e98 ("clk: Renesas versaclock7 ccf device driver") Signed-off-by: Marek Vasut <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent be3471c commit b5e10be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-versaclock7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ static const struct regmap_config vc7_regmap_config = {
12821282
};
12831283

12841284
static const struct i2c_device_id vc7_i2c_id[] = {
1285-
{ "rc21008a", VC7_RC21008A },
1285+
{ "rc21008a", .driver_data = (kernel_ulong_t)&vc7_rc21008a_info },
12861286
{}
12871287
};
12881288
MODULE_DEVICE_TABLE(i2c, vc7_i2c_id);

0 commit comments

Comments
 (0)