projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a1ae8b
)
spi: rb4xx: Fix checking return value of devm_ioremap_resource()
author
Axel Lin
<axel.lin@ingics.com>
Thu, 30 Apr 2015 02:06:54 +0000
(10:06 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 1 May 2015 16:35:54 +0000
(17:35 +0100)
devm_ioremap_resource() returns ERR_PTR on failure.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rb4xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-rb4xx.c
b/drivers/spi/spi-rb4xx.c
index 50f49f38e73c5e5f006f0a0d7c1f99df87157dd6..3641d0e20135b3794bc33428e7c29d7dace51405 100644
(file)
--- a/
drivers/spi/spi-rb4xx.c
+++ b/
drivers/spi/spi-rb4xx.c
@@
-145,7
+145,7
@@
static int rb4xx_spi_probe(struct platform_device *pdev)
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
spi_base = devm_ioremap_resource(&pdev->dev, r);
- if (
!spi_base
)
+ if (
IS_ERR(spi_base)
)
return PTR_ERR(spi_base);
master = spi_alloc_master(&pdev->dev, sizeof(*rbspi));