rtc: ds1307: Drop of_match_ptr and CONFIG_OF protections
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Nov 2020 14:28:59 +0000 (16:28 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 17 Nov 2020 19:25:42 +0000 (20:25 +0100)
commit698fffc2705cc48804cc31021cdb2ae4290927be
tree4e1d190dfd1b0587b0ad724e75e5c614b9fa9f21
parent227ec129ad7b035ee2ae2e57e9567a8126ad93f3
rtc: ds1307: Drop of_match_ptr and CONFIG_OF protections

These prevent use of this driver with ACPI via PRP0001.
Drop them to remove this restriction.

Also added mod_devicetable.h include given use of struct of_device_id.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20201116142859.31257-3-andriy.shevchenko@linux.intel.com
drivers/rtc/rtc-ds1307.c