Commit 7841fe53 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds

rtc: rtc-ds1390: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a3080fa7
...@@ -132,10 +132,9 @@ static int ds1390_probe(struct spi_device *spi) ...@@ -132,10 +132,9 @@ static int ds1390_probe(struct spi_device *spi)
spi_setup(spi); spi_setup(spi);
chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL); chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL);
if (!chip) { if (!chip)
dev_err(&spi->dev, "unable to allocate device memory\n");
return -ENOMEM; return -ENOMEM;
}
spi_set_drvdata(spi, chip); spi_set_drvdata(spi, chip);
res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp); res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment