core: improve of_match_ptr with OF_PLATDATA
authorWalter Lozano <walter.lozano@collabora.com>
Wed, 29 Jul 2020 16:17:31 +0000 (13:17 -0300)
committerSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:50:43 +0000 (12:50 -0600)
commitdc447b6b3fef1b145014519f607bb9722455bc16
tree99098996a92f6fa563a97c30c872b02f1a0040be
parent2b522f1e79c358465886f90e2923764f58cca81d
core: improve of_match_ptr with OF_PLATDATA

Currently of_match_ptr is used to avoid referencing compatible strings
when OF_CONTROL is not enabled. This behaviour could be improved by
taking into account also OF_PLATDATA, as when this configuration is
enabled the compatible strings are not used at all.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/dm/device.h