caif: spi: missing platform_driver_unregister() on error in cfspi_init_module()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 25 Apr 2013 07:15:23 +0000 (15:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 07:51:43 +0000 (03:51 -0400)
commite56db277684895184bc74fcf74f7ef993e3a5b6c
treed7101df7982ec2a5c7bdf93afe84e5f376da1c28
parente8dbad66ef56074eadb41ed5998acd2320447018
caif: spi: missing platform_driver_unregister() on error in cfspi_init_module()

Add the missing platform_driver_unregister() before return
from cfspi_init_module() in the error handling case.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_spi.c