staging: vme_pio2: fix oops on module unloading
commit9349f8af28ea89639b3c97da583d60631ed10398
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Fri, 14 Dec 2012 11:02:44 +0000 (14 15:02 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 21:56:24 +0000 (7 13:56 -0800)
treee4556c2aeb97fbcea025f2e1dceaa1f8fe24fc8d
parent6102c48bd421074a33e102f2ebda3724e8d275f9
staging: vme_pio2: fix oops on module unloading

This patch forbids loading vme_pio2 module without specifing "num_bus" parameter.
Otherwise on module unloading pio2_exit() calls vme_unregister_driver() for not
registered pio2_driver.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Manohar Vanga <manohar.vanga@gmail.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_pio2_core.c