[Cocci] [PATCH v2 1/2] of: Remove of_dev_{get,put}()

2021-02-13 Thread Rob Herring
ux-arm-ker...@lists.infradead.org Cc: linux-...@vger.kernel.org Cc: cocci@systeme.lip6.fr Signed-off-by: Rob Herring --- v2: - Fix build --- arch/powerpc/platforms/pseries/ibmebus.c | 4 ++-- drivers/net/ethernet/ibm/emac/core.c | 15 --- drivers/of/device.c

[Cocci] [PATCH v2 2/2] driver core: platform: Drop of_device_node_put() wrapper

2021-02-13 Thread Rob Herring
Cc: Frank Rowand Signed-off-by: Rob Herring --- v2: - Fix build --- drivers/base/platform.c | 2 +- include/linux/of_device.h | 7 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 95fd1549f87d..9d5171e5f967 100644 --- a/dr

[Cocci] [PATCH v2 0/2] of: of_device.h cleanups

2021-02-13 Thread Rob Herring
This is a couple of cleanups for of_device.h. They fell out from my attempt at decoupling of_device.h and of_platform.h which is a mess and I haven't finished, but there's no reason to wait on these. Rob Rob Herring (2): of: Remove of_dev_{get,put}() driver core: platform: Drop

[Cocci] [PATCH 1/2] of: Remove of_dev_{get,put}()

2021-02-11 Thread Rob Herring
ux-arm-ker...@lists.infradead.org Cc: linux-...@vger.kernel.org Cc: cocci@systeme.lip6.fr Signed-off-by: Rob Herring --- arch/powerpc/platforms/pseries/ibmebus.c | 4 ++-- drivers/net/ethernet/ibm/emac/core.c | 15 --- drivers/of/device.c | 21 - drivers/of/

[Cocci] [PATCH 0/2] of: of_device.h cleanups

2021-02-11 Thread Rob Herring
This is a couple of cleanups for of_device.h. They fell out from my attempt at decoupling of_device.h and of_platform.h which is a mess and I haven't finished, but there's no reason to wait on these. Rob Rob Herring (2): of: Remove of_dev_{get,put}() driver core: platform: Drop

[Cocci] [PATCH 2/2] driver core: platform: Drop of_device_node_put() wrapper

2021-02-11 Thread Rob Herring
Cc: Frank Rowand Signed-off-by: Rob Herring --- drivers/base/platform.c | 2 +- include/linux/of_device.h | 7 --- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 95fd1549f87d..c31bc9e92dd1 100644 --- a/drivers/base/platfo