On Tue, Nov 24, 2020 at 10:58 PM Peter Chen <peter.chen@xxxxxxx> wrote: > When adding the new SoCs, the new compatible is added at dts, but forget > adding at device driver's of_device_id table? In this case, the probe function will not even be called if there is no matching. Please see: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.10-rc5&id=e6c7c258f035ffec9d8a808c1bc34b6a5beae0ef and https://www.alsa-project.org/pipermail/alsa-devel/2017-January/117275.html There is no need for doing a NULL check on of_device_get_match_data() on a DT-only driver.