.. | .. |
---|
392 | 392 | return ret; |
---|
393 | 393 | |
---|
394 | 394 | /* |
---|
395 | | - * Since we've linked to tuples in the card structure, |
---|
396 | | - * we must make sure we have a reference to it. |
---|
397 | | - */ |
---|
398 | | - get_device(&func->card->dev); |
---|
399 | | - |
---|
400 | | - /* |
---|
401 | 395 | * Vendor/device id is optional for function CIS, so |
---|
402 | 396 | * copy it from the card structure as needed. |
---|
403 | 397 | */ |
---|
.. | .. |
---|
422 | 416 | } |
---|
423 | 417 | |
---|
424 | 418 | func->tuples = NULL; |
---|
425 | | - |
---|
426 | | - /* |
---|
427 | | - * We have now removed the link to the tuples in the |
---|
428 | | - * card structure, so remove the reference. |
---|
429 | | - */ |
---|
430 | | - put_device(&func->card->dev); |
---|
431 | 419 | } |
---|
432 | 420 | |
---|