diff options
author | Super Liu <supercjliu@google.com> | 2020-01-06 22:32:25 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2020-01-07 10:36:14 +0800 |
commit | be20bb5606cbd3ccc401b5396f6d207d4a2db554 (patch) | |
tree | 85b687021ed1804620dc5c55cd860fe6712e16c3 | |
parent | 858446f92f5d8d2b4842c33af206c1a46ecc4bfa (diff) | |
download | sec_touch-be20bb5606cbd3ccc401b5396f6d207d4a2db554.tar.gz |
sec_touch: change return value check for of_drm_find_panel()
commit 5fa8e4a22182d
Author: Boris Brezillon <boris.brezillon@bootlin.com>
drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL
Link: https://patchwork.freedesktop.org/patch/msgid/20180509130042.9435-2-boris.brezillon@bootlin.com
Bug: 147001297
Change-Id: I4a67bf4d4859c342be2507f2ac74774c563e8bd7
Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r-- | sec_ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1937,7 +1937,7 @@ static int sec_ts_parse_dt(struct spi_device *client) return -EPROBE_DEFER; panel = of_drm_find_panel(panelmap.np); of_node_put(panelmap.np); - if (panel) { + if (!IS_ERR_OR_NULL(panel)) { pdata->panel = panel; pdata->initial_panel_index = panelmap.args[0]; break; |