]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit374846fc98b7fec0acbb931559aa3ef203f4083e
tree34933cd5242aff1b1c7f348afb6be2384d57fb0d
parent6a9a572e9853978dd04bf5622c20f84918d5b00d
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