mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user