regulator: tps6524x: Remove redundant error message

kzalloc prints its own OOM message upon failure.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Sachin Kamat 2014-02-20 14:23:16 +05:30 committed by Mark Brown
parent 38dbfb59d1
commit 516add1d9d

View File

@ -593,10 +593,9 @@ static int pmic_probe(struct spi_device *spi)
} }
hw = devm_kzalloc(&spi->dev, sizeof(struct tps6524x), GFP_KERNEL); hw = devm_kzalloc(&spi->dev, sizeof(struct tps6524x), GFP_KERNEL);
if (!hw) { if (!hw)
dev_err(dev, "cannot allocate regulator private data\n");
return -ENOMEM; return -ENOMEM;
}
spi_set_drvdata(spi, hw); spi_set_drvdata(spi, hw);
memset(hw, 0, sizeof(struct tps6524x)); memset(hw, 0, sizeof(struct tps6524x));