Platform: OLPC: Avoid a warning if the EC didn't register yet
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 13 May 2019 07:56:35 +0000 (09:56 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 May 2019 14:27:08 +0000 (17:27 +0300)
commit560331eaee6c552adc1b8201063ccbfe5009bc12
tree4ddaded216d39525fa99248e58ea6f8f78926be8
parentec9964b4803300fb86f8e8fd9b421e59f7a71dc5
Platform: OLPC: Avoid a warning if the EC didn't register yet

Just return EPROBE_DEFER, so that whoever attempted to use the EC call can
defer their work.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/olpc/olpc-ec.c