rtc: s3c: Use generic helper to get driver data
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 18 Jan 2019 13:28:37 +0000 (14:28 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 22 Jan 2019 17:36:27 +0000 (18:36 +0100)
commit64704c92fd19c599f20433aae1372a7ccab79a57
tree0eff52b3fa4ed9a7f4650df5a520847804e1ebd1
parent5a5b614ba61cc2a89ad0dffc63d913a1a6ba1f9f
rtc: s3c: Use generic helper to get driver data

Replace of_match_node() with of_device_get_match_data(), which removes a
few lines of code from the driver.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-s3c.c