|
@@ -1160,8 +1160,7 @@ static int ace_probe(struct platform_device *dev)
|
|
|
dev_dbg(&dev->dev, "ace_probe(%p)\n", dev);
|
|
|
|
|
|
/* device id and bus width */
|
|
|
- of_property_read_u32(dev->dev.of_node, "port-number", &id);
|
|
|
- if (id < 0)
|
|
|
+ if (of_property_read_u32(dev->dev.of_node, "port-number", &id))
|
|
|
id = 0;
|
|
|
if (of_find_property(dev->dev.of_node, "8-bit", NULL))
|
|
|
bus_width = ACE_BUS_WIDTH_8;
|