spi: bcm63xx-hsspi: checking for ERR_PTR instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 Dec 2013 14:12:13 +0000 (17:12 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 9 Dec 2013 17:24:21 +0000 (17:24 +0000)
commit87917528cc922d0b91643dabacec01415c792086
tree6700858f1aec1beee68192a4901ff091cd7e3f7e
parent142168eba9dc5c20538a67049ad53c49bc6f8336
spi: bcm63xx-hsspi: checking for ERR_PTR instead of NULL

devm_request_and_ioremap() returns NULL on error, it doesn't return an
ERR_PTR().  This patch fixes it by switching to devm_ioremap_resource()
which is the prefered function anyway.

Fixes: 142168eba9dc ('spi: bcm63xx-hsspi: add bcm63xx HSSPI driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-bcm63xx-hsspi.c
This page took 0.030601 seconds and 5 git commands to generate.