This driver can use the replacement API instead of calling
of_match_device() and then dereferencing the pointer that is returned.
This nicely avoids referencing the match table when it is undefined with
configurations where CONFIG_OF=n.

Signed-off-by: Stephen Boyd <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Jacopo Mondi <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Jacopo Mondi <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Frank Rowand <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
---

Please ack so Rob can apply.

 drivers/media/platform/renesas-ceu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/renesas-ceu.c 
b/drivers/media/platform/renesas-ceu.c
index 4a633ad0e8fa..352e7c84d5ba 100644
--- a/drivers/media/platform/renesas-ceu.c
+++ b/drivers/media/platform/renesas-ceu.c
@@ -1679,7 +1679,7 @@ static int ceu_probe(struct platform_device *pdev)
        v4l2_async_notifier_init(&ceudev->notifier);
 
        if (IS_ENABLED(CONFIG_OF) && dev->of_node) {
-               ceu_data = of_match_device(ceu_of_match, dev)->data;
+               ceu_data = of_device_get_match_data(dev);
                num_subdevs = ceu_parse_dt(ceudev);
        } else if (dev->platform_data) {
                /* Assume SH4 if booting with platform data. */
-- 
https://chromeos.dev

Reply via email to