|
@@ -872,7 +872,7 @@ static int aspeed_i2c_probe_bus(struct platform_device *pdev)
|
|
if (!match)
|
|
if (!match)
|
|
bus->get_clk_reg_val = aspeed_i2c_24xx_get_clk_reg_val;
|
|
bus->get_clk_reg_val = aspeed_i2c_24xx_get_clk_reg_val;
|
|
else
|
|
else
|
|
- bus->get_clk_reg_val = match->data;
|
|
|
|
|
|
+ bus->get_clk_reg_val = (u32 (*)(u32))match->data;
|
|
|
|
|
|
/* Initialize the I2C adapter */
|
|
/* Initialize the I2C adapter */
|
|
spin_lock_init(&bus->lock);
|
|
spin_lock_init(&bus->lock);
|