rtc: ds1307: put struct nvmem_config on the stack
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 12 Feb 2018 22:47:23 +0000 (23:47 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:17 +0000 (10:49 +0100)
commit409baf1785db703583a5f0b51c0d0b114e14f4fb
tree34933cd5242aff1b1c7f348afb6be2384d57fb0d
parente9fb7682fa22b16175b6cabcc481ec53ba696c43
rtc: ds1307: put struct nvmem_config on the stack

Avoid allocating memory for struct nvmem_config as it is only necessary at
the nvmem registration.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1307.c