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-Url: https://git.stricted.de/?a=commitdiff_plain;h=b20b51f090f81418b4f74232a0f414b886e8ba8c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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);