mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
rtc: nvmem: remove nvmem from struct rtc_device
Using devm_nvmem_register allows to avoid tracking the nvmem pointer in the rtc_device structure. This ultimately allows to register multiple nvmem devices from an RTC driver. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
461e557b97
commit
41c9e132c5
2 changed files with 10 additions and 15 deletions
|
@ -138,7 +138,6 @@ struct rtc_device {
|
|||
|
||||
bool registered;
|
||||
|
||||
struct nvmem_device *nvmem;
|
||||
/* Old ABI support */
|
||||
bool nvram_old_abi;
|
||||
struct bin_attribute *nvram;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue