media: renesas-ceu: Use of_device_get_match_data()
authorStephen Boyd <swboyd@chromium.org>
Sat, 23 Jan 2021 03:44:23 +0000 (19:44 -0800)
committerRob Herring <robh@kernel.org>
Tue, 26 Jan 2021 18:17:31 +0000 (12:17 -0600)
commita38f3fbc30ec28527aa7dd98d3f4ed24708e7818
tree2e6908165b939ab96f33eb22c3daa4e37f429d71
parentcb18a7979a35f5f14cab49715e97efe7700fd349
media: renesas-ceu: Use of_device_get_match_data()

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 <swboyd@chromium.org>
Acked-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Acked-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jacopo Mondi <jacopo@jmondi.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: <linux-media@vger.kernel.org>
Cc: <linux-renesas-soc@vger.kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210123034428.2841052-2-swboyd@chromium.org
drivers/media/platform/renesas-ceu.c