]> git.baikalelectronics.ru Git - kernel.git/commit
spi-topcliff-pch: missing platform_driver_unregister() on error in pch_spi_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 25 Apr 2013 07:18:02 +0000 (15:18 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 25 Apr 2013 10:57:38 +0000 (11:57 +0100)
commita556e9362a8a3730e202158fabc2d793f356ca37
treec0804a1da07c4a20ebe0a79604a02ac184db116f
parent3f764f6d5c7b8e53e377b47e9be1bfd8e37f6c49
spi-topcliff-pch: missing platform_driver_unregister() on error in pch_spi_init()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-topcliff-pch.c