Patchwork [2/3] drivers/rtc/rtc-hym8563.c: Remove redundant of_match_ptr helper

login
register
mail settings
Submitter Sachin Kamat
Date Dec. 21, 2013, 8:09 a.m.
Message ID <1387613341-21855-2-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/304399/
State New
Headers show

Comments

Sachin Kamat - Dec. 21, 2013, 8:09 a.m.
'hym8563_dt_idtable' is always compiled in. Hence the
helper macro is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/rtc/rtc-hym8563.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/rtc/rtc-hym8563.c b/drivers/rtc/rtc-hym8563.c
index b56e3d3fbfd3..6118000b787a 100644
--- a/drivers/rtc/rtc-hym8563.c
+++ b/drivers/rtc/rtc-hym8563.c
@@ -593,7 +593,7 @@  static struct i2c_driver hym8563_driver = {
 		.name	= "rtc-hym8563",
 		.owner	= THIS_MODULE,
 		.pm	= &hym8563_pm_ops,
-		.of_match_table	= of_match_ptr(hym8563_dt_idtable),
+		.of_match_table	= hym8563_dt_idtable,
 	},
 	.probe		= hym8563_probe,
 	.id_table	= hym8563_id,