On Fri, Nov 25, 2022, at 09:54, Binbin Zhou wrote: > of_match_ptr() compiles into NULL if CONFIG_OF is disabled. > Fix warning by dropping of_match_ptr(). > > Suggested by Andy Shevchenko, thanks. > > Signed-off-by: Binbin Zhou <zhoubinbin@xxxxxxxxxxx> Acked-by: Arnd Bergmann <arnd@xxxxxxxx> I think this is a useful cleanup in general, though I don't think there is an actual warning in this particular driver that gets fixed by the patch, so it would be good to change the changelog text to describe this better: dropping a matching #ifdef check along with dropping of_match_ptr() is just a cleanup, while dropping of_match_ptr() that has no corresponding #ifdef fixes an actual warning.