From: Wei Yongjun
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun
---
drivers/w1/slaves/w1_ds2780.c | 3 ++-
1
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun
2 matches
Mail list logo