From: Niklas Söderlund Date: Fri, 25 Dec 2015 17:25:16 +0000 (-0200) Subject: [media] vim2m: return error if driver registration fails X-Git-Tag: next-20160210~70^2~3^2~63 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b20b51f090f81418b4f74232a0f414b886e8ba8c;p=karo-tx-linux.git [media] vim2m: return error if driver registration fails Don't hide the error code. Signed-off-by: Niklas Söderlund Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c index 418113c99801..c4b5fab83666 100644 --- a/drivers/media/platform/vim2m.c +++ b/drivers/media/platform/vim2m.c @@ -1074,7 +1074,7 @@ static int __init vim2m_init(void) if (ret) platform_device_unregister(&vim2m_pdev); - return 0; + return ret; } module_init(vim2m_init);