* [PATCH] media: cec: i2c: ch7322: Drop of_match_ptr
@ 2023-02-08 18:45 Guenter Roeck
[not found] ` <CAFs7P=hYUZY5Sx5SMF80e5M-+iH=dOG=ExFOgw+cjOWcGgpg=w@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Guenter Roeck @ 2023-02-08 18:45 UTC (permalink / raw)
To: Joe Tessler
Cc: Hans Verkuil, Mauro Carvalho Chehab, linux-media, linux-kernel,
Guenter Roeck, Joshua Pius
The driver does not instantiate on ACPI based systems if OF is disabled.
Fix the problem by dropping of_match_ptr.
Cc: Joshua Pius <joshuapius@google.com>
Fixes: 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller driver")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/media/cec/i2c/ch7322.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/cec/i2c/ch7322.c b/drivers/media/cec/i2c/ch7322.c
index 34fad7123704..3c6e6496a001 100644
--- a/drivers/media/cec/i2c/ch7322.c
+++ b/drivers/media/cec/i2c/ch7322.c
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] media: cec: i2c: ch7322: Drop of_match_ptr
[not found] ` <CAFs7P=hYUZY5Sx5SMF80e5M-+iH=dOG=ExFOgw+cjOWcGgpg=w@mail.gmail.com>
@ 2023-02-08 19:02 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2023-02-08 19:02 UTC (permalink / raw)
To: Joshua Pius
Cc: Joe Tessler, Hans Verkuil, Mauro Carvalho Chehab, linux-media,
linux-kernel
Hi Joshua,
On Wed, Feb 08, 2023 at 01:54:04PM -0500, Joshua Pius wrote:
> Tested-by: stop cecservice, cec-ctl on endeavour
>
>
Ah, no, that should have been
Tested-by: Joshua Pius <joshuapius@google.com>
and please do it inline (after Signed-off-by: or Cc:).
Top-posting is discouraged on kernel mailing lists.
Thanks,
Guenter
>
>
> 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/>
>
>
>
>
> On Wed, Feb 8, 2023 at 1:45 PM Guenter Roeck <linux@roeck-us.net> wrote:
>
> > The driver does not instantiate on ACPI based systems if OF is disabled.
> > Fix the problem by dropping of_match_ptr.
> >
> > Cc: Joshua Pius <joshuapius@google.com>
> > Fixes: 21b9a47e0ec7 ("media: cec: i2c: ch7322: Add ch7322 CEC controller
> > driver")
> > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> > ---
> > drivers/media/cec/i2c/ch7322.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/media/cec/i2c/ch7322.c
> > b/drivers/media/cec/i2c/ch7322.c
> > index 34fad7123704..3c6e6496a001 100644
> > --- a/drivers/media/cec/i2c/ch7322.c
> > +++ b/drivers/media/cec/i2c/ch7322.c
> > @@ -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
> >
> >
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-08 19:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-08 18:45 [PATCH] media: cec: i2c: ch7322: Drop of_match_ptr Guenter Roeck
[not found] ` <CAFs7P=hYUZY5Sx5SMF80e5M-+iH=dOG=ExFOgw+cjOWcGgpg=w@mail.gmail.com>
2023-02-08 19:02 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®