sc16is7xx: null ptr check

If a wrong compatible flag in specified, the of_match_device
returning null.
Implemented check and if NULL then returning -ENODEV.

Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sean Nyekjaer 2015-10-04 18:59:45 +02:00 • committed by Greg Kroah-Hartman
commit 2b0159d1ec