diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-03 17:49:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 19:21:17 -0400 |
commit | 7841fe5396a33eaa7fd180dbed6f551a92657435 (patch) | |
tree | 2d74c7dd3b181f44cc725dd64c74e66d0cfaa802 /drivers/rtc/rtc-ds1390.c | |
parent | a3080fa7ec028dca0ac24399e19292bcf4feaf6c (diff) |
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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-ds1390.c')
-rw-r--r-- | drivers/rtc/rtc-ds1390.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index be9d8c0a7e3a..e67bfcb3a1aa 100644 --- a/drivers/rtc/rtc-ds1390.c +++ b/drivers/rtc/rtc-ds1390.c | |||
@@ -132,10 +132,9 @@ static int ds1390_probe(struct spi_device *spi) | |||
132 | spi_setup(spi); | 132 | spi_setup(spi); |
133 | 133 | ||
134 | chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL); | 134 | chip = devm_kzalloc(&spi->dev, sizeof(*chip), GFP_KERNEL); |
135 | if (!chip) { | 135 | if (!chip) |
136 | dev_err(&spi->dev, "unable to allocate device memory\n"); | ||
137 | return -ENOMEM; | 136 | return -ENOMEM; |
138 | } | 137 | |
139 | spi_set_drvdata(spi, chip); | 138 | spi_set_drvdata(spi, chip); |
140 | 139 | ||
141 | res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp); | 140 | res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp); |