commit | 02589f60510030a3c1496e7a8c511e4f674ef5ff | [log] [tgz] |
---|---|---|
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | Sat Aug 02 15:10:57 2008 -0300 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Aug 22 16:29:56 2008 -0400 |
tree | 24650fdd0e2a0ad8145693164fa27e847379aacc | |
parent | c94c93da90a9e46a73a5733ff8454fb4b14733fb [diff] |
rfkill: detect bogus double-registering (v2) Detect and abort with -EEXIST if rfkill_register is called twice on the same rfkill struct. And WARN_ON(it) for good measure. While at it, flag when we are adding the first switch of a type, we will need that information later. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Cc: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>