Browse Source

[FUSION]: Fix mptspi.c build with CONFIG_PM not set.

Signed-off-by: Tom "spot" Callaway <tcallawa@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tom "spot" Callaway 19 years ago
parent
commit
c29ca9d181
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/message/fusion/mptspi.c

+ 2 - 0
drivers/message/fusion/mptspi.c

@@ -831,6 +831,7 @@ mptspi_ioc_reset(MPT_ADAPTER *ioc, int reset_phase)
 	return rc;
 	return rc;
 }
 }
 
 
+#ifdef CONFIG_PM
 /*
 /*
  * spi module resume handler
  * spi module resume handler
  */
  */
@@ -846,6 +847,7 @@ mptspi_resume(struct pci_dev *pdev)
 
 
 	return rc;
 	return rc;
 }
 }
+#endif
 
 
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/