Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62712
b: refs/heads/master
c: 57ce21b
h: refs/heads/master
v: v3
  • Loading branch information
Prakash, Sathya authored and James Bottomley committed Jul 18, 2007
1 parent 07c8f3f commit 445c7f9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c8db6beb81a07147f64cffd33bd43b9e96f4f40
refs/heads/master: 57ce21bfccaf3b24296f1e097682177e49017a57
8 changes: 7 additions & 1 deletion trunk/drivers/message/fusion/mptsas.c
Original file line number Diff line number Diff line change
Expand Up @@ -3301,6 +3301,8 @@ static struct pci_driver mptsas_driver = {
static int __init
mptsas_init(void)
{
int error;

show_mptmod_ver(my_NAME, my_VERSION);

mptsas_transport_template =
Expand All @@ -3324,7 +3326,11 @@ mptsas_init(void)
": Registered for IOC reset notifications\n"));
}

return pci_register_driver(&mptsas_driver);
error = pci_register_driver(&mptsas_driver);
if (error)
sas_release_transport(mptsas_transport_template);

return error;
}

static void __exit
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/message/fusion/mptspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,8 @@ static struct pci_driver mptspi_driver = {
static int __init
mptspi_init(void)
{
int error;

show_mptmod_ver(my_NAME, my_VERSION);

mptspi_transport_template = spi_attach_transport(&mptspi_transport_functions);
Expand All @@ -1544,7 +1546,11 @@ mptspi_init(void)
": Registered for IOC reset notifications\n"));
}

return pci_register_driver(&mptspi_driver);
error = pci_register_driver(&mptspi_driver);
if (error)
spi_release_transport(mptspi_transport_template);

return error;
}

/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
Expand Down

0 comments on commit 445c7f9

Please sign in to comment.