|
@@ -746,8 +746,7 @@ mv64xxx_of_config(struct mv64xxx_i2c_data *drv_data,
|
|
}
|
|
}
|
|
tclk = clk_get_rate(drv_data->clk);
|
|
tclk = clk_get_rate(drv_data->clk);
|
|
|
|
|
|
- rc = of_property_read_u32(np, "clock-frequency", &bus_freq);
|
|
|
|
- if (rc)
|
|
|
|
|
|
+ if (of_property_read_u32(np, "clock-frequency", &bus_freq))
|
|
bus_freq = 100000; /* 100kHz by default */
|
|
bus_freq = 100000; /* 100kHz by default */
|
|
|
|
|
|
if (!mv64xxx_find_baud_factors(bus_freq, tclk,
|
|
if (!mv64xxx_find_baud_factors(bus_freq, tclk,
|