mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 02:51:44 +00:00
drm/sun4i: mark PM functions as __maybe_unused
Disabling CONFIG_PM produces a compile time warning when these
functions are not referenced:
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1072:12: error: 'sun6i_dsi_runtime_suspend' defined but not used [-Werror=unused-function]
static int sun6i_dsi_runtime_suspend(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1043:12: error: 'sun6i_dsi_runtime_resume' defined but not used [-Werror=unused-function]
static int sun6i_dsi_runtime_resume(struct device *dev)
^~~~~~~~~~~~~~~~~~~~~~~~
Fixes: 133add5b5a
("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180525155030.3667352-1-arnd@arndb.de
This commit is contained in:
parent
952a08a21a
commit
6b1c5eaf5c
@ -1040,7 +1040,7 @@ static int sun6i_dsi_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_dsi_runtime_resume(struct device *dev)
|
||||
static int __maybe_unused sun6i_dsi_runtime_resume(struct device *dev)
|
||||
{
|
||||
struct sun6i_dsi *dsi = dev_get_drvdata(dev);
|
||||
|
||||
@ -1069,7 +1069,7 @@ static int sun6i_dsi_runtime_resume(struct device *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_dsi_runtime_suspend(struct device *dev)
|
||||
static int __maybe_unused sun6i_dsi_runtime_suspend(struct device *dev)
|
||||
{
|
||||
struct sun6i_dsi *dsi = dev_get_drvdata(dev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user