drm/ast: Include <linux/of.h> where necessary
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 25 Mar 2024 20:06:46 +0000 (21:06 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 2 Apr 2024 08:40:43 +0000 (10:40 +0200)
Include <linux/of.h> to get of_property_read_u32() in the source
files that need it. Avoids the proxy include via <linux/i2c.h>.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240325200855.21150-2-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_main.c

index 90bcb1eb9cd94f67d11da54835cb18b588ef692f..f8c49ba68e78997db2123b595d750221e7f3e27d 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/pci.h>
 
 #include <drm/drm_aperture.h>
index 2f3ad5f949fcb0adb8cfb7e31eada220a2c4e090..0637abb70361c9a74d481d8ef8b59262aff83d28 100644 (file)
@@ -26,6 +26,7 @@
  * Authors: Dave Airlie <airlied@redhat.com>
  */
 
+#include <linux/of.h>
 #include <linux/pci.h>
 
 #include <drm/drm_atomic_helper.h>