Skip to content

Commit 8463b66

Browse files
committed
drm/ast: Include <linux/of.h> where necessary
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
1 parent 0d21364 commit 8463b66

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/ast/ast_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*/
2828

2929
#include <linux/module.h>
30+
#include <linux/of.h>
3031
#include <linux/pci.h>
3132

3233
#include <drm/drm_aperture.h>

drivers/gpu/drm/ast/ast_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* Authors: Dave Airlie <airlied@redhat.com>
2727
*/
2828

29+
#include <linux/of.h>
2930
#include <linux/pci.h>
3031

3132
#include <drm/drm_atomic_helper.h>

0 commit comments

Comments
 (0)