mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
qeth: read number of ports from card
Read out number of ports from the hardware. Signed-off-by: Ursula Braun <[email protected]> Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
8af7c5aebc
commit
a74b08c7fc
2 changed files with 4 additions and 2 deletions
|
|
@ -3803,8 +3803,9 @@ retry:
|
|||
QETH_DBF_TEXT_(SETUP, 2, "2err%d", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
mpno = QETH_MAX_PORTNO;
|
||||
mpno = qdio_get_ssqd_pct(CARD_DDEV(card));
|
||||
if (mpno)
|
||||
mpno = min(mpno - 1, QETH_MAX_PORTNO);
|
||||
if (card->info.portno > mpno) {
|
||||
PRINT_ERR("Device %s does not offer port number %d \n.",
|
||||
CARD_BUS_ID(card), card->info.portno);
|
||||
|
|
|
|||
Loading…
Reference in a new issue