aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/bus/mvebu-mbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
index 2394e9753ef5..c646a769e1f5 100644
--- a/drivers/bus/mvebu-mbus.c
+++ b/drivers/bus/mvebu-mbus.c
@@ -734,11 +734,11 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base,
734{ 734{
735 const struct of_device_id *of_id; 735 const struct of_device_id *of_id;
736 736
737 for (of_id = of_mvebu_mbus_ids; of_id->compatible; of_id++) 737 for (of_id = of_mvebu_mbus_ids; of_id->compatible[0]; of_id++)
738 if (!strcmp(of_id->compatible, soc)) 738 if (!strcmp(of_id->compatible, soc))
739 break; 739 break;
740 740
741 if (!of_id->compatible) { 741 if (!of_id->compatible[0]) {
742 pr_err("could not find a matching SoC family\n"); 742 pr_err("could not find a matching SoC family\n");
743 return -ENODEV; 743 return -ENODEV;
744 } 744 }