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

2021-02-13 Thread Rob Herring
of_dev_get() and of_dev_put are just wrappers for get_device()/put_device() on a platform_device. There's also already platform_device_{get,put}() wrappers for this purpose. Let's update the few users and remove of_dev_{get,put}(). Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul

Re: [Cocci] Missing package for Ubuntu 20.04 LTS?

2021-02-13 Thread Julia Lawall
On Sat, 13 Feb 2021, Taylor Blau wrote: > Hi Julia, > > On Fri, Feb 12, 2021 at 03:06:16PM +0100, Julia Lawall wrote: > > > Is there a planned release of coccinelle that will appear in the focal > > > suite? > > > > Can you use the PPA? > > > >

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

2021-02-13 Thread Rob Herring
of_device_node_put() is just a wrapper for of_node_put(). The platform driver core is already polluted with of_node pointers and the only 'get' already uses of_node_get() (though typically the get would happen in of_device_alloc()). Cc: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" Cc: Frank

[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