Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MIPS: generic: Fix machine compatible matching
We now have a platform (Ranchu) in the "generic" platform which matches based on the FDT compatible string using mips_machine_is_compatible(), however that function doesn't stop at a blank struct of_device_id::compatible as that is an array in the struct, not a pointer to a string. Fix the loop completion to check the first byte of the compatible array rather than the address of the compatible array in the struct. Fixes: eed0eab ("MIPS: generic: Introduce generic DT-based board support") Signed-off-by: James Hogan <[email protected]> Reviewed-by: Paul Burton <[email protected]> Reviewed-by: Matt Redfearn <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/18580/
- Loading branch information