]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/rockchip: cdn-dp-core: Make cdn_dp_core_suspend/resume static
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Sun, 26 Apr 2020 16:16:53 +0000 (18:16 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 27 Apr 2020 19:13:20 +0000 (21:13 +0200)
This fixes the following warning detected when running make with W=1

    drivers/gpu/drm/rockchip//cdn-dp-core.c:1112:5: warning: no previous
    prototype for ‘cdn_dp_suspend’ [-Wmissing-prototypes]

    drivers/gpu/drm/rockchip//cdn-dp-core.c:1126:5: warning: no previous
    prototype for ‘cdn_dp_resume’ [-Wmissing-prototypes]

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200426161653.7710-1-enric.balletbo@collabora.com
drivers/gpu/drm/rockchip/cdn-dp-core.c

index 06f85138b51b321b0593c69fe91515e0612b4b32..c634b95b50f7518040abe6ecf888812dc35c72af 100644 (file)
@@ -1106,7 +1106,7 @@ static const struct component_ops cdn_dp_component_ops = {
        .unbind = cdn_dp_unbind,
 };
 
-int cdn_dp_suspend(struct device *dev)
+static int cdn_dp_suspend(struct device *dev)
 {
        struct cdn_dp_device *dp = dev_get_drvdata(dev);
        int ret = 0;
@@ -1120,7 +1120,7 @@ int cdn_dp_suspend(struct device *dev)
        return ret;
 }
 
-int cdn_dp_resume(struct device *dev)
+static int cdn_dp_resume(struct device *dev)
 {
        struct cdn_dp_device *dp = dev_get_drvdata(dev);