misc: fix compiler errors

Theses are reported when using nixpkgs to build the kernel.

Signed-off-by: ZHANG Yuntian <yt@radxa.com>
Change-Id: I12350a9fb5626e42b02c0fbcedf3401ffaa24ca2
This commit is contained in:
ZHANG Yuntian
2025-10-21 11:33:00 +00:00
parent 915a940499
commit 3de0273f18
2 changed files with 2 additions and 3 deletions

View File

@@ -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;

View File

@@ -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);