Skip to content

Commit ad527ca

Browse files
Marek Vasutbebarino
authored andcommitted
clk: rs9: 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: 892e0dd ("clk: rs9: Add Renesas 9-series PCIe clock generator 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 b5e10be commit ad527ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/clk-renesas-pcie.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ static const struct rs9_chip_info renesas_9fgv0441_info = {
392392
};
393393

394394
static const struct i2c_device_id rs9_id[] = {
395-
{ "9fgv0241", .driver_data = RENESAS_9FGV0241 },
396-
{ "9fgv0441", .driver_data = RENESAS_9FGV0441 },
395+
{ "9fgv0241", .driver_data = (kernel_ulong_t)&renesas_9fgv0241_info },
396+
{ "9fgv0441", .driver_data = (kernel_ulong_t)&renesas_9fgv0441_info },
397397
{ }
398398
};
399399
MODULE_DEVICE_TABLE(i2c, rs9_id);

0 commit comments

Comments
 (0)