Skip to contentSkip to conversation

media: cec: i2c: ch7322: Drop of_match_ptr

PATCH Superseded Guenter Roeck 1 participant 2 messages Feb 8, 2023 1 message not in the archive

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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]>
Fixes 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller driver")
---
 drivers/media/cec/i2c/ch7322.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/cec/i2c/ch7322.c +1 -1
index 34fad7123704..3c6e6496a001 100644
@@ -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
author Tested-by Joshua Pius
#2 lore raw
In reply to a message not in the archive

Hi Joshua,

Quoted 3 lines · Joshua Pius
Tested-by stop cecservice, cec-ctl on endeavour

Ah, no, that should have been

and please do it inline (after Signed-off-by: or Cc:). Top-posting is discouraged on kernel mailing lists.

Thanks,
Guenter

Quoted 53 lines

Joshua Pius

Software Developer

careers.google.com

<https://ca.linkedin.com/in/joshua-pius>
<https://www.youtube.com/user/lifeatgoogle>
<https://www.facebook.com/lifeatgoogle/> <https://twitter.com/lifeatgoogle>
<https://www.instagram.com/lifeatgoogle>

<https://news.engineering.utoronto.ca/grads-to-watch-2022/#row14>

|Learn more about our candidate privacy policy.|
<https://careers.google.com/privacy-policy/>

Quoted 29 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]>
Fixes 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller

driver")

---
 drivers/media/cec/i2c/ch7322.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/cec/i2c/ch7322.c +1 -2
index 34fad7123704..3c6e6496a001 100644
@@ -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,
--

2.39.1