@@ -1003,13 +1003,9 @@ static int aspeed_i2c_probe_bus(struct platform_device *pdev)
}
reset_control_deassert(bus->rst);
- ret = of_property_read_u32(pdev->dev.of_node,
- "bus-frequency", &bus->bus_frequency);
- if (ret < 0) {
- dev_err(&pdev->dev,
- "Could not read bus-frequency property\n");
- bus->bus_frequency = I2C_MAX_STANDARD_MODE_FREQ;
- }
+ bus->bus_frequency = I2C_MAX_STANDARD_MODE_FREQ;
+ of_property_read_u32(pdev->dev.of_node,
+ "bus-frequency", &bus->bus_frequency);
match = of_match_node(aspeed_i2c_bus_of_table, pdev->dev.of_node);
if (!match)