From: Henrique de Moraes Holschuh Date: Sat, 2 Aug 2008 18:10:57 +0000 (-0300) Subject: rfkill: detect bogus double-registering (v2) X-Git-Tag: v2.6.28-rc1~717^2~436 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02589f60510030a3c1496e7a8c511e4f674ef5ff;p=pandora-kernel.git 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 Acked-by: Ivo van Doorn Cc: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed