pcmcia: deprecate CS_NO_MORE_ITEMS
CS_NO_MORE_ITEMS is returned by the CIS tuple reading and parsing code if the end of a tuple chain is reached. As at least one PCMCIA driver relies on matching this return value, replace it with -ENOSPC which is now uniquely used for this purpose within the in-kernel pcmcia subsystem. CC: Russell King <rmk+kernel@arm.linux.org.uk> CC: linux-serial@vger.kernel.org CC: Michael Buesch <mb@bu3sch.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
@@ -733,7 +733,7 @@ int ssb_pcmcia_get_invariants(struct ssb_bus *bus,
|
||||
break;
|
||||
}
|
||||
res = pcmcia_get_next_tuple(bus->host_pcmcia, &tuple);
|
||||
if (res == CS_NO_MORE_ITEMS)
|
||||
if (res == -ENOSPC)
|
||||
break;
|
||||
GOTO_ERROR_ON(res != 0, "VEN next tpl");
|
||||
res = pcmcia_get_tuple_data(bus->host_pcmcia, &tuple);
|
||||
|
مرجع در شماره جدید
Block a user