Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1376683 > unrolled thread

[PATCH V1 3/5] cpufreq: Loongson1: Use dev_get_platdata() to get platform_data

Started byKeguang Zhang <keguang.zhang@gmail.com>
First post2016-04-12 12:50 +0200
Last post2016-04-12 12:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V1 3/5] cpufreq: Loongson1: Use dev_get_platdata() to get platform_data Keguang Zhang <keguang.zhang@gmail.com> - 2016-04-12 12:50 +0200

#1376683 — [PATCH V1 3/5] cpufreq: Loongson1: Use dev_get_platdata() to get platform_data

FromKeguang Zhang <keguang.zhang@gmail.com>
Date2016-04-12 12:50 +0200
Subject[PATCH V1 3/5] cpufreq: Loongson1: Use dev_get_platdata() to get platform_data
Message-ID<rn43o-643-33@gated-at.bofh.it>
From: Kelvin Cheung <keguang.zhang@gmail.com>

This patch uses dev_get_platdata() to get the platform_data
instead of referencing it directly.

Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
---
 drivers/cpufreq/loongson1-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/loongson1-cpufreq.c b/drivers/cpufreq/loongson1-cpufreq.c
index 4c3087f..1b63b4a 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;
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web