gpiobus_release_pin: remove incorrect prefix from error messages
It's interesting that similar messages from gpiobus_acquire_pin never had any prefix while gpiobus_release_pin messages were prefixed with "gpiobus_acquire_pin". Anyway, the prefix is not that useful and can be deduced from context. MFC after: 2 weeks
This commit is contained in:
parent
f5c5d4147f
commit
f31030ba61
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362492
@ -421,13 +421,13 @@ gpiobus_release_pin(device_t bus, uint32_t pin)
|
|||||||
/* Consistency check. */
|
/* Consistency check. */
|
||||||
if (pin >= sc->sc_npins) {
|
if (pin >= sc->sc_npins) {
|
||||||
device_printf(bus,
|
device_printf(bus,
|
||||||
"gpiobus_acquire_pin: invalid pin %d, max=%d\n",
|
"invalid pin %d, max=%d\n",
|
||||||
pin, sc->sc_npins - 1);
|
pin, sc->sc_npins - 1);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sc->sc_pins[pin].mapped) {
|
if (!sc->sc_pins[pin].mapped) {
|
||||||
device_printf(bus, "gpiobus_acquire_pin: pin %d is not mapped\n", pin);
|
device_printf(bus, "pin %d is not mapped\n", pin);
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
sc->sc_pins[pin].mapped = 0;
|
sc->sc_pins[pin].mapped = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user