From: Yunsu Kim Date: Mon, 2 Jul 2018 03:57:28 +0000 (+0900) Subject: [9610] media: radio: Remove clk control while suspend/resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=131fbb9b3c22c5b8666933acb6f062201aafd348;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610] media: radio: Remove clk control while suspend/resume Change-Id: I4efab8f8fcbd2eb195ec3fd274e5665f52c64242 Signed-off-by: Yunsu Kim --- diff --git a/drivers/media/radio/s610/radio-s610.c b/drivers/media/radio/s610/radio-s610.c index 79582c3b5fe4..3d80bc319a09 100644 --- a/drivers/media/radio/s610/radio-s610.c +++ b/drivers/media/radio/s610/radio-s610.c @@ -2518,27 +2518,15 @@ static int fm_radio_suspend(struct device *dev) FUNC_ENTRY(radio); - if (pm_runtime_suspended(dev)) - return 0; - - fm_radio_clk_disable(radio); - return 0; } static int fm_radio_resume(struct device *dev) { struct s610_radio *radio = dev_get_drvdata(dev); - int ret = 0; FUNC_ENTRY(radio); - ret = fm_radio_clk_enable(radio); - if (ret) { - dev_err(dev, "%s: clk_enable failed\n", __func__); - return ret; - } - return 0; } #endif /* CONFIG_PM_SLEEP */