Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04a373fd authored by Sachin Kamat's avatar Sachin Kamat Committed by Linus Torvalds
Browse files

drivers/rtc/rtc-s3c: use of_match_ptr() macro



This eliminates having an #ifdef returning NULL for the case when OF is
disabled.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 18c701a9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -663,8 +663,6 @@ static const struct of_device_id s3c_rtc_dt_match[] = {
	{},
};
MODULE_DEVICE_TABLE(of, s3c_rtc_dt_match);
#else
#define s3c_rtc_dt_match NULL
#endif

static struct platform_device_id s3c_rtc_driver_ids[] = {
@@ -695,7 +693,7 @@ static struct platform_driver s3c_rtc_driver = {
	.driver		= {
		.name	= "s3c-rtc",
		.owner	= THIS_MODULE,
		.of_match_table	= s3c_rtc_dt_match,
		.of_match_table	= of_match_ptr(s3c_rtc_dt_match),
	},
};