rtc: class separate device allocation from registration
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 6 Jul 2017 09:41:58 +0000 (11:41 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 7 Jul 2017 11:14:06 +0000 (13:14 +0200)
commitd1bec20facd6eae17cb2f39ebbf443c95c650490
tree088d06e722ba1cf5bf8cface608413a8623246da
parent9a6757eadc14f01385fd41fe3906dc22dcdb919e
rtc: class separate device allocation from registration

Create rtc_allocate_device to allocate memory for a struct rtc_device and
initialize it.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/class.c