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

Commit f0eb824b authored by Wolfram Sang's avatar Wolfram Sang Committed by Grant Likely
Browse files

gpio: pca953x: remove unneeded check for chip type



We can assume our own device_id table is correct, so remove checking if
the chip type is valid. (The check was bogus anyway: If it found an
invalid entry, it returned with 0!) This is in preparation for further
cleanups.

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent d92ef29a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -673,10 +673,8 @@ static int __devinit pca953x_probe(struct i2c_client *client,

	if (chip->chip_type == PCA953X_TYPE)
		device_pca953x_init(chip, invert);
	else if (chip->chip_type == PCA957X_TYPE)
		device_pca957x_init(chip, invert);
	else
		goto out_failed;
		device_pca957x_init(chip, invert);

	ret = pca953x_irq_setup(chip, id, irq_base);
	if (ret)