diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 187f83629f7e..5dcc0313c38a 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -59,10 +59,6 @@ | |||
59 | #include <linux/delay.h> | 59 | #include <linux/delay.h> |
60 | #include <linux/interrupt.h> /* needed for in_interrupt() proto */ | 60 | #include <linux/interrupt.h> /* needed for in_interrupt() proto */ |
61 | #include <linux/dma-mapping.h> | 61 | #include <linux/dma-mapping.h> |
62 | #include <asm/io.h> | ||
63 | #ifdef CONFIG_MTRR | ||
64 | #include <asm/mtrr.h> | ||
65 | #endif | ||
66 | #include <linux/kthread.h> | 62 | #include <linux/kthread.h> |
67 | #include <scsi/scsi_host.h> | 63 | #include <scsi/scsi_host.h> |
68 | 64 | ||
@@ -2820,13 +2816,6 @@ mpt_adapter_dispose(MPT_ADAPTER *ioc) | |||
2820 | pci_disable_device(ioc->pcidev); | 2816 | pci_disable_device(ioc->pcidev); |
2821 | pci_release_selected_regions(ioc->pcidev, ioc->bars); | 2817 | pci_release_selected_regions(ioc->pcidev, ioc->bars); |
2822 | 2818 | ||
2823 | #if defined(CONFIG_MTRR) && 0 | ||
2824 | if (ioc->mtrr_reg > 0) { | ||
2825 | mtrr_del(ioc->mtrr_reg, 0, 0); | ||
2826 | dprintk(ioc, printk(MYIOC_s_INFO_FMT "MTRR region de-registered\n", ioc->name)); | ||
2827 | } | ||
2828 | #endif | ||
2829 | |||
2830 | /* Zap the adapter lookup ptr! */ | 2819 | /* Zap the adapter lookup ptr! */ |
2831 | list_del(&ioc->list); | 2820 | list_del(&ioc->list); |
2832 | 2821 | ||
@@ -4512,19 +4501,6 @@ PrimeIocFifos(MPT_ADAPTER *ioc) | |||
4512 | 4501 | ||
4513 | ioc->req_frames_low_dma = (u32) (alloc_dma & 0xFFFFFFFF); | 4502 | ioc->req_frames_low_dma = (u32) (alloc_dma & 0xFFFFFFFF); |
4514 | 4503 | ||
4515 | #if defined(CONFIG_MTRR) && 0 | ||
4516 | /* | ||
4517 | * Enable Write Combining MTRR for IOC's memory region. | ||
4518 | * (at least as much as we can; "size and base must be | ||
4519 | * multiples of 4 kiB" | ||
4520 | */ | ||
4521 | ioc->mtrr_reg = mtrr_add(ioc->req_frames_dma, | ||
4522 | sz, | ||
4523 | MTRR_TYPE_WRCOMB, 1); | ||
4524 | dprintk(ioc, printk(MYIOC_s_DEBUG_FMT "MTRR region registered (base:size=%08x:%x)\n", | ||
4525 | ioc->name, ioc->req_frames_dma, sz)); | ||
4526 | #endif | ||
4527 | |||
4528 | for (i = 0; i < ioc->req_depth; i++) { | 4504 | for (i = 0; i < ioc->req_depth; i++) { |
4529 | alloc_dma += ioc->req_sz; | 4505 | alloc_dma += ioc->req_sz; |
4530 | mem += ioc->req_sz; | 4506 | mem += ioc->req_sz; |