panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.
authorEric Anholt <eric@anholt.net>
Thu, 13 Apr 2017 00:52:56 +0000 (17:52 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:48:14 +0000 (02:48 +0000)
commit2e8f1cb8bf121e5795e7910c2ddea3a050d13feb
treece0a446125c63aa19154a6c9d09865680c5c18f3
parentfca98995d4d9fff91e42339a167bf3adb4dba942
panel-raspberrypi-touchscreen: Fix NULL deref if probe order goes wrong.

If the i2c driver hadn't pobed before the panel driver probes, then
the client would be NULL but we were looking for an ERR_PTR in the
error case.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c