]> git.karo-electronics.de Git - linux-beck.git/commit
base: core: WARN() about bogus permissions on device attributes
authorFelipe Balbi <balbi@ti.com>
Wed, 20 Feb 2013 08:31:42 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 16:39:15 +0000 (09:39 -0700)
commit8f46baaa7ec6cd0851794020b31958e64679dd26
treed075f91c3a8ef47237df697664efb22b7e676a14
parentbe871b7e54711479d3b9d3617d49898770830db2
base: core: WARN() about bogus permissions on device attributes

Whenever a struct device_attribute is registered
with mismatched permissions - read permission without
a show routine or write permission without store
routine - we will issue a big warning so we catch
those early enough.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c