| .. | .. |
|---|
| 1450 | 1450 | |
|---|
| 1451 | 1451 | status = mmc_add_host(mmc); |
|---|
| 1452 | 1452 | if (status != 0) |
|---|
| 1453 | | - goto fail_add_host; |
|---|
| 1453 | + goto fail_glue_init; |
|---|
| 1454 | 1454 | |
|---|
| 1455 | 1455 | /* |
|---|
| 1456 | 1456 | * Index 0 is card detect |
|---|
| .. | .. |
|---|
| 1458 | 1458 | */ |
|---|
| 1459 | 1459 | status = mmc_gpiod_request_cd(mmc, NULL, 0, false, 1000); |
|---|
| 1460 | 1460 | if (status == -EPROBE_DEFER) |
|---|
| 1461 | | - goto fail_add_host; |
|---|
| 1461 | + goto fail_gpiod_request; |
|---|
| 1462 | 1462 | if (!status) { |
|---|
| 1463 | 1463 | /* |
|---|
| 1464 | 1464 | * The platform has a CD GPIO signal that may support |
|---|
| .. | .. |
|---|
| 1473 | 1473 | /* Index 1 is write protect/read only */ |
|---|
| 1474 | 1474 | status = mmc_gpiod_request_ro(mmc, NULL, 1, 0); |
|---|
| 1475 | 1475 | if (status == -EPROBE_DEFER) |
|---|
| 1476 | | - goto fail_add_host; |
|---|
| 1476 | + goto fail_gpiod_request; |
|---|
| 1477 | 1477 | if (!status) |
|---|
| 1478 | 1478 | has_ro = true; |
|---|
| 1479 | 1479 | |
|---|
| .. | .. |
|---|
| 1487 | 1487 | ? ", cd polling" : ""); |
|---|
| 1488 | 1488 | return 0; |
|---|
| 1489 | 1489 | |
|---|
| 1490 | | -fail_add_host: |
|---|
| 1490 | +fail_gpiod_request: |
|---|
| 1491 | 1491 | mmc_remove_host(mmc); |
|---|
| 1492 | 1492 | fail_glue_init: |
|---|
| 1493 | 1493 | mmc_spi_dma_free(host); |
|---|