Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f98fc1b2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "gpio: qpnp-pin: fix qpnp_pin_probe issues"

parents 9aeb4806 dd174583
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1184,7 +1184,7 @@ static int qpnp_pin_probe(struct spmi_device *spmi)
	struct resource *res;
	struct spmi_resource *d_node;
	int i, rc;
	int lowest_gpio = UINT_MAX, highest_gpio = 0;
	u32 lowest_gpio = UINT_MAX, highest_gpio = 0;
	u32 gpio;
	char version[Q_REG_SUBTYPE - Q_REG_DIG_MAJOR_REV + 1];
	const char *dev_name;
@@ -1242,7 +1242,7 @@ static int qpnp_pin_probe(struct spmi_device *spmi)

	/* allocate gpio lookup tables */
	q_chip->pmic_pins = kzalloc(sizeof(struct qpnp_pin_spec *) *
						highest_gpio - lowest_gpio + 1,
					(highest_gpio - lowest_gpio + 1),
					GFP_KERNEL);
	q_chip->chip_gpios = kzalloc(sizeof(struct qpnp_pin_spec *) *
						spmi->num_dev_node, GFP_KERNEL);