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: v4.6-rc1~130^2^2~300 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b20b51f090f81418b4f74232a0f414b886e8ba8c;p=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);