pch_phub: fix error return code in pch_phub_probe()
commit29ddae2a40883640941932f73eb3d15535c3f4a2
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 4 Jun 2013 14:44:27 +0000 (4 22:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:54:08 +0000 (6 12:54 -0700)
tree9d26271f7af9fcb6d9ce80cd39936c126c860820
parentf7b41276b6b07f47c5f5212fa244385b0e3aaa30
pch_phub: fix error return code in pch_phub_probe()

Error code had been assigned to retval in some error handling case
but never use it, 0 is always returned in those case, this patch
fix them to return a negative error code.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/pch_phub.c