rtc: s3c: Drop unneeded cast to void pointer
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 16 Jun 2017 19:28:04 +0000 (21:28 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 24 Jun 2017 20:52:35 +0000 (22:52 +0200)
There is no need for casting to void pointer for of_device_id data.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-s3c.c

index 2b503dab79578bfe5488d2a7898f4df5e1d8831c..bfc8660ff1e74a513e6c2df124e2bc48ceea31a5 100644 (file)
@@ -801,19 +801,19 @@ static struct s3c_rtc_data const s3c6410_rtc_data = {
 static const struct of_device_id s3c_rtc_dt_match[] = {
        {
                .compatible = "samsung,s3c2410-rtc",
-               .data = (void *)&s3c2410_rtc_data,
+               .data = &s3c2410_rtc_data,
        }, {
                .compatible = "samsung,s3c2416-rtc",
-               .data = (void *)&s3c2416_rtc_data,
+               .data = &s3c2416_rtc_data,
        }, {
                .compatible = "samsung,s3c2443-rtc",
-               .data = (void *)&s3c2443_rtc_data,
+               .data = &s3c2443_rtc_data,
        }, {
                .compatible = "samsung,s3c6410-rtc",
-               .data = (void *)&s3c6410_rtc_data,
+               .data = &s3c6410_rtc_data,
        }, {
                .compatible = "samsung,exynos3250-rtc",
-               .data = (void *)&s3c6410_rtc_data,
+               .data = &s3c6410_rtc_data,
        },
        { /* sentinel */ },
 };