orinoco: do not resgister NULL pm_notifier function
authorAndrey Borzenkov <arvidjaar@mail.ru>
Sun, 15 Feb 2009 09:51:18 +0000 (12:51 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Feb 2009 18:17:51 +0000 (13:17 -0500)
With DEBUG_NOTIFIERS it results in

[11330.890966] WARNING: at /home/bor/src/linux-git/kernel/notifier.c:88
notifier_call_chain+0x91/0xa0()
[11330.890977] Hardware name: PORTEGE 4000
[11330.890983] Invalid notifier called! ...

Without DEBUG_NOTIFIERS it most likely crashes on NULL pointer.

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Acked-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found