Skip to contentSkip to conversation

vim2m: return error if driver registration fails

PATCH New Niklas Söderlund 1 participant 1 message Dec 25, 2015 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vim2m: return error if driver registration fails

From: Niklas Söderlund <[email protected]>

---
 drivers/media/platform/vim2m.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/vim2m.c +1 -1
index e18fb9f..da37a59 100644
@@ -1079,7 +1079,7 @@ static int __init vim2m_init(void)
 	if (ret)
 		platform_device_unregister(&vim2m_pdev);
 
-	return 0;
+	return ret;
 }
 
 module_init(vim2m_init);
Signature · 1 line
2.6.3