[PATCH 0/3] nvmem: layouts: store owner from modules with nvmem_layout_driver_register()

From: Krzysztof Kozlowski
Date: Fri Mar 29 2024 - 12:14:05 EST


Merging
=======
All further patches depend on the first patch.

Description
===========
Modules registering driver with nvmem_layout_driver_register() might
forget to set .owner field.

Solve the problem by moving this task away from the drivers to the core
code, just like we did for platform_driver in commit 9447057eaff8
("platform_device: use a macro instead of platform_driver_register").

Best regards,
Krzysztof

---
Krzysztof Kozlowski (3):
nvmem: layouts: store owner from modules with nvmem_layout_driver_register()
nvmem: layouts: onie-tlv: drop driver owner initialization
nvmem: layouts: sl28vpd: drop driver owner initialization

drivers/nvmem/layouts.c | 6 ++++--
drivers/nvmem/layouts/onie-tlv.c | 1 -
drivers/nvmem/layouts/sl28vpd.c | 1 -
include/linux/nvmem-provider.h | 5 ++++-
4 files changed, 8 insertions(+), 5 deletions(-)
---
base-commit: 7fdcff3312e16ba8d1419f8a18f465c5cc235ecf
change-id: 20240329-module-owner-nvmem-861ae7a0fc24

Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>