diff --git a/drivers/mfd/fusb302.c b/drivers/mfd/fusb302.c index 33e652d125b35a2e0a146534d4aa3b207f07e504..3e2dbeef88fa6d4f5fecb10750df770e8c01725a 100644 --- a/drivers/mfd/fusb302.c +++ b/drivers/mfd/fusb302.c @@ -253,7 +253,7 @@ static int fusb302_set_pos_power_by_power_ic(struct fusb30x_chip* chip) dev_info(chip->dev, "No power dev node \n"); return -1; } - + ret = of_property_read_u32(pwr, "max-input-voltage", &val); if (ret == 0) max_vol = val / 1000; @@ -268,7 +268,7 @@ static int fusb302_set_pos_power_by_power_ic(struct fusb30x_chip* chip) fusb_set_pos_power(chip, max_vol, max_cur); dev_err(chip->dev, "max vol cur %d %d \n", max_vol, max_cur); - + return 0; } @@ -3346,8 +3346,7 @@ static void fusb302_work_func(struct work_struct *work) state_machine_typec(chip); } -static int fusb30x_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int fusb30x_probe(struct i2c_client *client) { struct fusb30x_chip *chip; struct PD_CAP_INFO *pd_cap_info; @@ -3563,7 +3562,6 @@ static void fusb30x_remove(struct i2c_client *client) struct fusb30x_chip *chip = i2c_get_clientdata(client); destroy_workqueue(chip->fusb30x_wq); - return 0; } static void fusb30x_shutdown(struct i2c_client *client)