diff --git a/drivers/iio/magnetometer/mmc5633_i2c.c b/drivers/iio/magnetometer/mmc5633_i2c.c index 412128d5a140..956f0f7d3d22 100755 --- a/drivers/iio/magnetometer/mmc5633_i2c.c +++ b/drivers/iio/magnetometer/mmc5633_i2c.c @@ -72,8 +72,7 @@ static const struct regmap_config mmc5633_regmap_config = { .max_register = 0x7F, }; -static int mmc5633_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mmc5633_probe(struct i2c_client *client) { struct mmc5633_data *data; struct iio_dev *indio_dev; diff --git a/drivers/regulator/fwnode_regulator.c b/drivers/regulator/fwnode_regulator.c index 6a5c228835dc..1159860caf46 100644 --- a/drivers/regulator/fwnode_regulator.c +++ b/drivers/regulator/fwnode_regulator.c @@ -93,7 +93,7 @@ static int fwnode_get_regulation_constraints(struct device *dev, n_phandles = fwnode_count_reference_with_args(np, "regulator-coupled-with", NULL); - if (IS_ERR(n_phandles)) + if (IS_ERR(ERR_PTR(n_phandles))) n_phandles = 0; n_phandles = max(n_phandles, 0);