diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-05-06 16:57:47 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-05-06 16:57:47 +0300 |
commit | d4a5611743a6f5d126f8cbfdbf29e12fd8d1b73f (patch) | |
tree | c42bf5a46a90e039b74dffddb2898a14aa280ef6 /drivers/video/fbdev/s3c2410fb.c | |
parent | 3c5a1b111373e669c8220803464c3a508a87e254 (diff) | |
download | linux-d4a5611743a6f5d126f8cbfdbf29e12fd8d1b73f.tar.xz |
video: fbdev: Use dev_get_drvdata()
Using dev_get_drvdata directly.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Wan ZongShun <mcuos.com@gmail.com>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Michal Januszewski <spock@gentoo.org>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/s3c2410fb.c')
-rw-r--r-- | drivers/video/fbdev/s3c2410fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/s3c2410fb.c b/drivers/video/fbdev/s3c2410fb.c index a67e4567e656..a702da89910b 100644 --- a/drivers/video/fbdev/s3c2410fb.c +++ b/drivers/video/fbdev/s3c2410fb.c @@ -777,7 +777,7 @@ static int s3c2410fb_cpufreq_transition(struct notifier_block *nb, long delta_f; info = container_of(nb, struct s3c2410fb_info, freq_transition); - fbinfo = platform_get_drvdata(to_platform_device(info->dev)); + fbinfo = dev_get_drvdata(info->dev); /* work out change, <0 for speed-up */ delta_f = info->clk_rate - clk_get_rate(info->clk); |