diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2015-12-25 20:25:16 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-01 12:37:46 +0300 |
commit | b20b51f090f81418b4f74232a0f414b886e8ba8c (patch) | |
tree | 52191b1586096fd04829ab3e5eda72511ea87697 /drivers/media/platform/vim2m.c | |
parent | faccb05ca8fb56c140fdeb70ae599e559c01c815 (diff) | |
download | linux-b20b51f090f81418b4f74232a0f414b886e8ba8c.tar.xz |
[media] vim2m: return error if driver registration fails
Don't hide the error code.
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/vim2m.c')
-rw-r--r-- | drivers/media/platform/vim2m.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |