diff options
| author | Neil Armstrong <narmstrong@baylibre.com> | 2019-02-04 12:49:37 +0300 | 
|---|---|---|
| committer | Kevin Hilman <khilman@baylibre.com> | 2019-02-08 03:31:30 +0300 | 
| commit | 382f8be04551d60c3e0c4103ce2941c3f335279e (patch) | |
| tree | c17f3860fc982b3fae15a01579be02c7257971fc /lib/mpi/mpi-bit.c | |
| parent | 99e5a8df8b3627239ecef09547931a81618d0851 (diff) | |
| download | linux-382f8be04551d60c3e0c4103ce2941c3f335279e.tar.xz | |
soc: amlogic: canvas: Fix meson_canvas_get when probe failed
When probe fails, a platforn_device is still associated to the node,
but dev_get_drvdata() returns NULL.
Handle this case by returning a consistent error.
Fixes: d4983983d987 ("soc: amlogic: add meson-canvas driver")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Maxime Jourdan <mjourdan@baylibre.com>
[khilman: fixed minor typo in comment ]
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
