summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-ep93xx.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2013-07-02 10:08:59 -0700
committerMark Brown <broonie@linaro.org>2013-07-15 11:37:14 +0100
commitb2d185edbac9c40adb1d390ad966e6900992e69d (patch)
tree716b7e9000150691d706e570d166af6c3f10a91c /drivers/spi/spi-ep93xx.c
parent48a7776e981fdf780728e45de4ae4f2b522c9c4d (diff)
downloadblackbird-op-linux-b2d185edbac9c40adb1d390ad966e6900992e69d.tar.gz
blackbird-op-linux-b2d185edbac9c40adb1d390ad966e6900992e69d.zip
spi: spi-ep93xx: remove dev_err() for kzalloc() failure
The kzalloc() failure will have already output a message. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Mika Westerberg <mika.westerberg@iki.fi> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-ep93xx.c')
-rw-r--r--drivers/spi/spi-ep93xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c
index c2660c24c0ab..7a44163ace50 100644
--- a/drivers/spi/spi-ep93xx.c
+++ b/drivers/spi/spi-ep93xx.c
@@ -1004,10 +1004,8 @@ static int ep93xx_spi_probe(struct platform_device *pdev)
}
master = spi_alloc_master(&pdev->dev, sizeof(*espi));
- if (!master) {
- dev_err(&pdev->dev, "failed to allocate spi master\n");
+ if (!master)
return -ENOMEM;
- }
master->setup = ep93xx_spi_setup;
master->transfer = ep93xx_spi_transfer;
OpenPOWER on IntegriCloud