From: Sachin Kamat Date: Thu, 23 Jan 2014 23:55:16 +0000 (-0800) Subject: drivers/rtc/rtc-ds1742.c: remove redundant of_match_ptr() helper X-Git-Tag: accepted/tizen/common/20141203.182822~733^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5516f0971793a0f7d0d54bf0220b6b2e13a05d7e;p=platform%2Fkernel%2Flinux-arm64.git drivers/rtc/rtc-ds1742.c: remove redundant of_match_ptr() helper 'ds1742_rtc_of_match' is always compiled in. Hence the helper macro is not needed. Signed-off-by: Sachin Kamat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-ds1742.c b/drivers/rtc/rtc-ds1742.c index d7f74f5..5a1f3b2 100644 --- a/drivers/rtc/rtc-ds1742.c +++ b/drivers/rtc/rtc-ds1742.c @@ -228,7 +228,7 @@ static struct platform_driver ds1742_rtc_driver = { .driver = { .name = "rtc-ds1742", .owner = THIS_MODULE, - .of_match_table = of_match_ptr(ds1742_rtc_of_match), + .of_match_table = ds1742_rtc_of_match, }, };