[PATCH 1/2] core: improve of_match_ptr with OF_PLATDATA