Skip to content

Add and use DEVM soc_device_register helper

Andrew Davis driver-core lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12base: soc: Implement devm_soc_device_register() helper functiondrivers/base/soc.c include/linux/sys_soc.h+39 -00 replies
2/12soc: ep93xx: Use devm_soc_device_register() helperdrivers/soc/cirrus/soc-ep93xx.c+1 -10 replies
3/12soc: imx8m: Use devm_soc_device_register() helperdrivers/soc/imx/soc-imx8m.c+1 -100 replies
4/12soc: imx9: Use devm_soc_device_register() helperdrivers/soc/imx/soc-imx9.c+1 -10 replies
5/12soc: loongson: Use devm_soc_device_register() helperdrivers/soc/loongson/loongson2_guts.c+2 -80 replies
6/12soc: mediatek: mtk-socinfo: Use devm_soc_device_register() helperdrivers/soc/mediatek/mtk-socinfo.c+4 -130 replies
7/12soc: qcom: socinfo: Use devm_soc_device_register() helperdrivers/soc/qcom/socinfo.c+1 -30 replies
8/12soc: renesas: rz-sysc: Use devm_soc_device_register() helperdrivers/soc/renesas/rz-sysc.c+1 -10 replies
9/12soc: samsung: exynos-chipid: Use devm_soc_device_register() helperdrivers/soc/samsung/exynos-chipid.c+1 -110 replies
10/12soc: ti: k3-socinfo: Use devm_soc_device_register() helperdrivers/soc/ti/k3-socinfo.c+1 -10 replies
11/12soc: versatile: realview: Use devm_soc_device_register() helperdrivers/soc/versatile/soc-realview.c+1 -130 replies
12/12soc: vt8500: Use devm_soc_device_register() helperdrivers/soc/vt8500/wmt-socinfo.c+1 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] Add and use DEVM soc_device_register helper

Hello all,

Add device managed devm_soc_device_register() to automatically unregister soc_devices thus leading to simplified SOC driver code.

Use this new helper for drivers which currently unregister manually and have a device to tie to this new automatic unregistration.

Thanks,
Andrew

Andrew Davis (12):
base: soc: Implement devm_soc_device_register() helper function
soc: ep93xx: Use devm_soc_device_register() helper
soc: imx8m: Use devm_soc_device_register() helper
soc: imx9: Use devm_soc_device_register() helper
soc: loongson: Use devm_soc_device_register() helper
soc: mediatek: mtk-socinfo: Use devm_soc_device_register() helper
soc: qcom: socinfo: Use devm_soc_device_register() helper
soc: renesas: rz-sysc: Use devm_soc_device_register() helper
soc: samsung: exynos-chipid: Use devm_soc_device_register() helper
soc: ti: k3-socinfo: Use devm_soc_device_register() helper
soc: versatile: realview: Use devm_soc_device_register() helper
soc: vt8500: Use devm_soc_device_register() helper

 drivers/base/soc.c                    | 23 +++++++++++++++++++++++
 drivers/soc/cirrus/soc-ep93xx.c       |  2 +-
 drivers/soc/imx/soc-imx8m.c           | 11 +----------
 drivers/soc/imx/soc-imx9.c            |  2 +-
 drivers/soc/loongson/loongson2_guts.c | 10 ++--------
 drivers/soc/mediatek/mtk-socinfo.c    | 17 ++++-------------
 drivers/soc/qcom/socinfo.c            |  4 +---
 drivers/soc/renesas/rz-sysc.c         |  2 +-
 drivers/soc/samsung/exynos-chipid.c   | 12 +-----------
 drivers/soc/ti/k3-socinfo.c           |  2 +-
 drivers/soc/versatile/soc-realview.c  | 14 +-------------
 drivers/soc/vt8500/wmt-socinfo.c      | 11 +----------
 include/linux/sys_soc.h               | 16 ++++++++++++++++
 13 files changed, 54 insertions(+), 72 deletions(-)
Signature · 1 line
2.43.0