[PATCH] fix compilation issues

From: Ondrej Jirman
Date: Wed May 19 2021 - 17:44:45 EST


---
drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c
index c44ed22d8aef0..947b4231f6449 100644
--- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c
+++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c
@@ -5,6 +5,7 @@

#include <linux/delay.h>
#include <linux/of_address.h>
+#include <linux/of_platform.h>

#include "sun8i_dw_hdmi.h"

@@ -748,7 +749,7 @@ int sun8i_hdmi_phy_probe(struct platform_device *pdev)
return ret;
}

-void sun8i_hdmi_phy_remove(struct platform_device *pdev)
+int sun8i_hdmi_phy_remove(struct platform_device *pdev)
{
struct sun8i_hdmi_phy *phy = platform_get_drvdata(pdev);

--
2.31.1


[ 0.307254] platform 1c28000.serial: probe deferral - supplier 1c20800.pinctrl not ready
[ 0.307340] platform 1c28400.serial: probe deferral - supplier 1c20800.pinctrl not ready
[ 0.307379] platform 1c28c00.serial: probe deferral - supplier 1c20800.pinctrl not ready
[ 0.309235] fwnode_links_purge_suppliers: display-engine
[ 0.310176] platform 1c0c000.lcd-controller: probe deferral - wait for supplier mixer@200000
[ 0.310228] platform 1c0d000.lcd-controller: probe deferral - wait for supplier mixer@200000
[ 0.311902] platform 1ca0000.dsi: probe deferral - wait for supplier pmic@3a3
[ 0.312287] platform 1ee0000.hdmi: probe deferral - wait for supplier pmic@3a3
[ 0.313076] fwnode_links_purge_suppliers: hdmi-phy@1ef0000 <------ phy probed
[ 0.316766] platform 1c21800.lradc: probe deferral - wait for supplier pmic@3a3
[ 0.317258] platform vibrator: probe deferral - wait for supplier pmic@3a3
[ 0.318703] sun6i-rtc 1f00000.rtc: registered as rtc0
[ 0.318748] sun6i-rtc 1f00000.rtc: setting system clock to 2021-05-19T21:40:59 UTC (1621460459)
[ 0.318917] sun6i-rtc 1f00000.rtc: RTC enabled
[ 0.318938] fwnode_links_purge_suppliers: rtc@1f00000
[ 0.318960] fwnode_links_purge_consumers: reboot-mode@4
[ 0.319185] i2c /dev entries driver

....

[ 0.453301] fwnode_links_purge_consumers: port
[ 0.453323] fwnode_links_purge_consumers: endpoint
[ 0.453346] fwnode_links_purge_consumers: panel@0
[ 0.491868] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffffffc010a44230)
[ 0.501830] sun4i-drm display-engine: bound 1200000.mixer (ops 0xffffffc010a44230)
[ 0.502915] sun4i-drm display-engine: No panel or bridge found... RGB output disabled
[ 0.502956] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xffffffc010a415a0)
[ 0.503466] sun4i-drm display-engine: bound 1c0d000.lcd-controller (ops 0xffffffc010a415a0)
[ 0.503545] sun4i-drm display-engine: bound 1ca0000.dsi (ops 0xffffffc010a431c8)
[ 0.505330] sun8i-dw-hdmi 1ee0000.hdmi: Detected HDMI TX controller v1.32a with HDCP (sun8i_dw_hdmi_phy)
[ 0.507566] sun8i-dw-hdmi 1ee0000.hdmi: registered DesignWare HDMI I2C bus driver
[ 0.510717] sun4i-drm display-engine: bound 1ee0000.hdmi (ops 0xffffffc010a43568)
[ 0.514674] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[ 0.514932] sun4i-drm display-engine: [drm] Cannot find any crtc or sizes
[ 0.515160] fwnode_links_purge_suppliers: hdmi@1ee0000 <------ hdmi probed
[ 0.515195] fwnode_links_purge_consumers: ports
[ 0.515217] fwnode_links_purge_consumers: port@0
[ 0.515240] fwnode_links_purge_consumers: endpoint
[ 0.515264] fwnode_links_purge_consumers: port@1
[ 0.515343] fwnode_links_purge_consumers: endpoint
[ 0.517089] input: 1c21800.lradc as /devices/platform/soc/1c21800.lradc/input/input1
[ 0.517358] fwnode_links_purge_suppliers: lradc@1c21800
[ 0.517384] fwnode_links_purge_consumers: button-200
[ 0.517407] fwnode_links_purge_consumers: button-400
[ 0.518414] input: gpio-vibrator as /devices/platform/vibrator/input/input2
[ 0.518582] fwnode_links_purge_suppliers: vibrator



> -Saravana