diff options
Diffstat (limited to 'drivers/ieee1394/eth1394.c')
-rw-r--r-- | drivers/ieee1394/eth1394.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c index d056c5953be3..b4fa754bfd1a 100644 --- a/drivers/ieee1394/eth1394.c +++ b/drivers/ieee1394/eth1394.c | |||
@@ -561,8 +561,10 @@ static void ether1394_add_host (struct hpsb_host *host) | |||
561 | struct eth1394_priv *priv; | 561 | struct eth1394_priv *priv; |
562 | u64 fifo_addr; | 562 | u64 fifo_addr; |
563 | 563 | ||
564 | if (!(host->config_roms & HPSB_CONFIG_ROM_ENTRY_IP1394)) | 564 | if (hpsb_config_rom_ip1394_add(host) != 0) { |
565 | ETH1394_PRINT_G(KERN_ERR, "Can't add IP-over-1394 ROM entry\n"); | ||
565 | return; | 566 | return; |
567 | } | ||
566 | 568 | ||
567 | fifo_addr = hpsb_allocate_and_register_addrspace( | 569 | fifo_addr = hpsb_allocate_and_register_addrspace( |
568 | ð1394_highlevel, host, &addr_ops, | 570 | ð1394_highlevel, host, &addr_ops, |
@@ -570,6 +572,7 @@ static void ether1394_add_host (struct hpsb_host *host) | |||
570 | CSR1212_INVALID_ADDR_SPACE, CSR1212_INVALID_ADDR_SPACE); | 572 | CSR1212_INVALID_ADDR_SPACE, CSR1212_INVALID_ADDR_SPACE); |
571 | if (fifo_addr == CSR1212_INVALID_ADDR_SPACE) { | 573 | if (fifo_addr == CSR1212_INVALID_ADDR_SPACE) { |
572 | ETH1394_PRINT_G(KERN_ERR, "Cannot register CSR space\n"); | 574 | ETH1394_PRINT_G(KERN_ERR, "Cannot register CSR space\n"); |
575 | hpsb_config_rom_ip1394_remove(host); | ||
573 | return; | 576 | return; |
574 | } | 577 | } |
575 | 578 | ||
@@ -649,6 +652,7 @@ out: | |||
649 | if (hi) | 652 | if (hi) |
650 | hpsb_destroy_hostinfo(ð1394_highlevel, host); | 653 | hpsb_destroy_hostinfo(ð1394_highlevel, host); |
651 | hpsb_unregister_addrspace(ð1394_highlevel, host, fifo_addr); | 654 | hpsb_unregister_addrspace(ð1394_highlevel, host, fifo_addr); |
655 | hpsb_config_rom_ip1394_remove(host); | ||
652 | } | 656 | } |
653 | 657 | ||
654 | /* Remove a card from our list */ | 658 | /* Remove a card from our list */ |
@@ -662,6 +666,7 @@ static void ether1394_remove_host (struct hpsb_host *host) | |||
662 | return; | 666 | return; |
663 | priv = netdev_priv(hi->dev); | 667 | priv = netdev_priv(hi->dev); |
664 | hpsb_unregister_addrspace(ð1394_highlevel, host, priv->local_fifo); | 668 | hpsb_unregister_addrspace(ð1394_highlevel, host, priv->local_fifo); |
669 | hpsb_config_rom_ip1394_remove(host); | ||
665 | if (priv->iso) | 670 | if (priv->iso) |
666 | hpsb_iso_shutdown(priv->iso); | 671 | hpsb_iso_shutdown(priv->iso); |
667 | unregister_netdev(hi->dev); | 672 | unregister_netdev(hi->dev); |