Bartosz Golaszewski cccb3b19e7 nvmem: fix nvmem_cell_get_from_lookup()
We check if the pointer returned by __nvmem_device_get() is not NULL
while we should actually check if it is not IS_ERR(nvmem). Fix it.

While we're at it: fix the next error path where we should assign an
error value to cell before returning.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-15 15:56:15 +02:00
..
2018-09-07 10:05:20 +02:00
2018-09-21 09:41:05 +02:00
2018-10-07 08:15:57 +02:00
2018-09-29 14:52:14 -07:00
2018-09-30 08:06:14 -07:00
2018-10-08 15:33:21 +02:00
2018-08-08 15:44:47 +10:00
2018-10-08 15:33:21 +02:00
2018-10-11 12:12:55 +02:00
2018-09-27 21:53:55 +02:00
2018-08-16 12:26:24 -07:00
2018-09-14 13:03:17 -10:00
2018-10-05 16:11:16 -07:00
2018-07-30 10:04:58 +02:00
2018-09-30 08:06:14 -07:00
2018-08-18 11:04:51 -07:00
2018-08-20 11:36:07 +02:00
2018-08-25 14:12:36 -07:00
2018-08-20 16:30:27 -07:00
2018-09-28 18:04:06 -07:00
2018-09-24 15:16:41 +02:00
2018-08-23 13:52:46 -07:00
2018-08-17 11:32:50 -07:00
2018-08-24 08:45:19 -07:00
2018-09-14 15:25:57 +02:00
2018-08-18 11:04:51 -07:00