Merge branch 'tip/perf/core-2' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...
[firefly-linux-kernel-4.4.55.git] / drivers / rtc / rtc-s3c.c
index e33df1bfe27e2e5743099e36c31bd42f04108da6..4bd9414aee650e2b08449323a5840497a5b9c48c 100644 (file)
@@ -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),
        },
 };