aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelvin Cheung <[email protected]>2016-04-12 18:40:17 +0800
committerRalf Baechle <[email protected]>2016-05-13 14:02:08 +0200
commit25581d2b76ef8564d592bf3bc61a5d6d4f5f2ea2 (patch)
treee376b236c10cd04875fa26931f5b4ede9961c42b
parent379e38a763dd63838411cc2fa765515e7535570b (diff)
CPUFREQ: Loongson1: Use dev_get_platdata() to get platform_data
This patch uses dev_get_platdata() to get the platform_data instead of referencing it directly. Signed-off-by: Kelvin Cheung <[email protected]> Acked-by: Viresh Kumar <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/13054/ Signed-off-by: Ralf Baechle <[email protected]>
-rw-r--r--drivers/cpufreq/loongson1-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/loongson1-cpufreq.c b/drivers/cpufreq/loongson1-cpufreq.c
index 4c3087f9f668..1b63b4a33133 100644
--- a/drivers/cpufreq/loongson1-cpufreq.c
+++ b/drivers/cpufreq/loongson1-cpufreq.c
@@ -134,7 +134,7 @@ static int ls1x_cpufreq_remove(struct platform_device *pdev)
static int ls1x_cpufreq_probe(struct platform_device *pdev)
{
- struct plat_ls1x_cpufreq *pdata = pdev->dev.platform_data;
+ struct plat_ls1x_cpufreq *pdata = dev_get_platdata(&pdev->dev);
struct clk *clk;
int ret;