diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2013-07-02 19:08:59 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-15 12:37:14 +0200 |
commit | b2d185edbac9c40adb1d390ad966e6900992e69d (patch) | |
tree | 716b7e9000150691d706e570d166af6c3f10a91c /drivers/spi/spi-ep93xx.c | |
parent | spi: spi-ep93xx: get platform resources early in (*probe) (diff) | |
download | linux-b2d185edbac9c40adb1d390ad966e6900992e69d.tar.xz 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.c | 4 |
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; |