From: Thomas Gleixner Date: Tue, 3 Nov 2009 05:16:28 +0000 (-0800) Subject: watchdog: Remove BKL from rio watchdog driver X-Git-Tag: v2.6.33-rc1~389^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=462265bf494c4f2a2f6e06480590becadecbfea7;p=pandora-kernel.git watchdog: Remove BKL from rio watchdog driver cycle_kernel_lock() was added with the BKL pushdown. The rio driver indeed needs that because riowd_device is initialized after misc_register(). So an open(), write/ioctl() which happens to get between misc_register returning and riowd_device initialization would dereference a NULL pointer. Move riowd_device initialization before misc_register() and get rid of cycle_kernel_lock(). Signed-off-by: Thomas Gleixner Signed-off-by: David S. Miller --- Reading git-diff-tree failed