[media] staging: lirc: add missing platform_device_del() on error
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 19 Jul 2016 11:24:42 +0000 (08:24 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 15:34:37 +0000 (12:34 -0300)
commit0ea92c50ad0d3c20db5ad4ee71bc6588baf1dfa9
treec145bc061f2a5db0fa17a510427bfe2fad4fe7ea
parent4a86bc1008e7202b49ccb59f52d7a6be9311ef7d
[media] staging: lirc: add missing platform_device_del() on error

Add the missing platform_device_del() before return from
lirc_parallel_init() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
drivers/staging/media/lirc/lirc_parallel.c