media: cec: i2c: ch7322: Drop of_match_ptr
Subsystems (3)
PATCH v2 1/1 media: cec: i2c: ch7322: Drop of_match_ptr
The driver does not instantiate on ACPI based systems if OF is disabled. Fix the problem by dropping of_match_ptr.
Cc Joshua Pius <[email protected]>
Tested-by Joshua Pius <[email protected]>
Fixes 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller driver")
Signed-off-by Guenter Roeck <[email protected]>
---
v2: Added Joshua's Tested-by: tag
drivers/media/cec/i2c/ch7322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/cec/i2c/ch7322.c +1 -1
@@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);static struct i2c_driver ch7322_i2c_driver = { .driver = { .name ="ch7322" , - .of_match_table =of_match_ptr (ch7322_of_match), + .of_match_table = ch7322_of_match, }, .probe_new = ch7322_probe, .remove = ch7322_remove,
Signature · 1 line
2.39.1
Hey Guenter,
Thank you for this fix.
Quoted 8 lines · Guenter Roeck
The driver does not instantiate on ACPI based systems if OF is disabled. Fix the problem by dropping
of_match_ptr.Cc Joshua Pius <[email protected]>Tested-by Joshua Pius <[email protected]>Fixes 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller driver")Signed-off-by Guenter Roeck <[email protected]>
Reviewed-by Joe Tessler <[email protected]>
Quoted 20 lines
---
v2: Added Joshua's Tested-by: tagdrivers/media/cec/i2c/ch7322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/cec/i2c/ch7322.c +1
-2@@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);static struct i2c_driver ch7322_i2c_driver = { .driver = { .name ="ch7322" , - .of_match_table =of_match_ptr (ch7322_of_match), + .of_match_table = ch7322_of_match, }, .probe_new = ch7322_probe, .remove = ch7322_remove, --
Quoted 2 lines
2.39.1
Joe
Quoted 3 lines · Guenter Roeck
The driver does not instantiate on ACPI based systems if OF is disabled. Fix the problem by dropping
of_match_ptr.
This patch has still not been applied, so ... ping ...
Is there anything else I need to do to get it applied ?
Thanks,
Guenter
Quoted 26 lines
Cc Joshua Pius <[email protected]>Tested-by Joshua Pius <[email protected]>Fixes 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller driver")Signed-off-by Guenter Roeck <[email protected]>---
v2: Added Joshua's Tested-by: tagdrivers/media/cec/i2c/ch7322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/cec/i2c/ch7322.c +1
-1@@ -589,7 +589,7 @@ MODULE_DEVICE_TABLE(of, ch7322_of_match);static struct i2c_driver ch7322_i2c_driver = { .driver = { .name ="ch7322" , - .of_match_table =of_match_ptr (ch7322_of_match), + .of_match_table = ch7322_of_match, }, .probe_new = ch7322_probe, .remove = ch7322_remove,Signature · 1 line
2.39.1