OSDN Git Service

coccinelle: api: add spatch to prevent unnecessary .owner
authorWolfram Sang <wsa@the-dreams.de>
Tue, 28 Oct 2014 16:40:43 +0000 (17:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 23:16:02 +0000 (15:16 -0800)
commit1f648f88cea7f9b16ea8964cd81b92fb08df75a5
treeeb745115f3216e1297aa258d0fdffd83fa6735e2
parent291f653a140ad880426125e5e9dbb70f4c184683
coccinelle: api: add spatch to prevent unnecessary .owner

There are calls which silently set the owner of a module. This is the
preferred way [1], so avoid setting it manually. Currently, we only care
about platform drivers, but there might be more calls to be added later.

[1] https://lkml.org/lkml/2014/10/12/87

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/coccinelle/api/platform_no_drv_owner.cocci [new file with mode: 0644]