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

Commit e73e4324 authored by Michael Buesch's avatar Michael Buesch Committed by Kalle Valo
Browse files

ssb/gpio: Remove unnecessary WARN_ON from driver_gpio



The WARN_ON triggers on older BCM4401-B0 100Base-TX ethernet controllers.
The warning serves no purpose. So let's just remove it.

Reported-by: default avatarH Buus <ubuntu@hbuus.com>
Signed-off-by: default avatarMichael Büsch <m@bues.ch>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 25a986e4
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -460,9 +460,6 @@ int ssb_gpio_init(struct ssb_bus *bus)
		return ssb_gpio_chipco_init(bus);
	else if (ssb_extif_available(&bus->extif))
		return ssb_gpio_extif_init(bus);
	else
		WARN_ON(1);

	return -1;
}

@@ -472,9 +469,6 @@ int ssb_gpio_unregister(struct ssb_bus *bus)
	    ssb_extif_available(&bus->extif)) {
		gpiochip_remove(&bus->gpio);
		return 0;
	} else {
		WARN_ON(1);
	}

	return -1;
}