video/fb: Propagate error code from failing to unregister conflicting fb
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Dec 2013 15:57:39 +0000 (15:57 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Dec 2013 00:56:13 +0000 (10:56 +1000)
commit46eeb2c144956e88197439b5ee5cf221a91b0a81
treef97380f79cd9ec37211109d05c50c2321ace6979
parent73e9efd4bddbf42d2938a150ba680b73b6126b77
video/fb: Propagate error code from failing to unregister conflicting fb

If we fail to remove a conflicting fb driver, we need to abort the
loading of the second driver to avoid likely kernel panics.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/video/fbmem.c
include/linux/fb.h