spi: mediatek: fix wrong error return value on probe
authorJavier Martinez Canillas <javier@osg.samsung.com>
Tue, 15 Sep 2015 12:46:45 +0000 (14:46 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 16 Sep 2015 19:45:11 +0000 (20:45 +0100)
commite26d15f735f570a1178c3bba4d85e6f58e098fdd
tree9197d5d71ecede4f53f49851d49cdf9dc56b2455
parent3d4fe182003bcde778e29e84c14c0c4bb70a452e
spi: mediatek: fix wrong error return value on probe

Commit adcbcfea15d62 ("spi: mediatek: fix spi clock usage error")
added a new sel_clk but introduced bugs in the error paths since
the wrong struct clk pointers are passed to PTR_ERR().

Fixes: adcbcfea15d62 ("spi: mediatek: fix spi clock usage error")
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c