• Randy Dunlap's avatar
    drm: xlnx: add <linux/io.h> for readl/writel · 3915f8bd
    Randy Dunlap authored
    Add a header file to prevent build errors:
    
    ../drivers/gpu/drm/xlnx/zynqmp_dp.c: In function ‘zynqmp_dp_write’:
    ../drivers/gpu/drm/xlnx/zynqmp_dp.c:335:9: error: implicit declaration of function ‘writel’ [-Werror=implicit-function-declaration]
      335 |         writel(val, dp->iomem + offset);
    ../drivers/gpu/drm/xlnx/zynqmp_dp.c: In function ‘zynqmp_dp_read’:
    ../drivers/gpu/drm/xlnx/zynqmp_dp.c:340:16: error: implicit declaration of function ‘readl’ [-Werror=implicit-function-declaration]
      340 |         return readl(dp->iomem + offset);
    
    Fixes: a204f974 ("drm: Remove linux/i2c.h from drm_crtc.h")
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Cc: Hyun Kwon <hyun.kwon@xilinx.com>
    Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Daniel Vetter <daniel@ffwll.ch>
    Cc: Michal Simek <michal.simek@xilinx.com>
    Cc: linux-arm-kernel@lists.infradead.org
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220706184224.29116-1-rdunlap@infradead.org
    3915f8bd
zynqmp_dp.c 49 KB