summaryrefslogtreecommitdiffstats
path: root/kernel/arch/ia64/hp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/ia64/hp')
-rw-r--r--kernel/arch/ia64/hp/common/sba_iommu.c6
-rw-r--r--kernel/arch/ia64/hp/sim/simscsi.c11
2 files changed, 2 insertions, 15 deletions
diff --git a/kernel/arch/ia64/hp/common/sba_iommu.c b/kernel/arch/ia64/hp/common/sba_iommu.c
index 344387a55..a6d6190c9 100644
--- a/kernel/arch/ia64/hp/common/sba_iommu.c
+++ b/kernel/arch/ia64/hp/common/sba_iommu.c
@@ -1140,13 +1140,9 @@ sba_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
#ifdef CONFIG_NUMA
{
- int node = ioc->node;
struct page *page;
- if (node == NUMA_NO_NODE)
- node = numa_node_id();
-
- page = alloc_pages_exact_node(node, flags, get_order(size));
+ page = alloc_pages_node(ioc->node, flags, get_order(size));
if (unlikely(!page))
return NULL;
diff --git a/kernel/arch/ia64/hp/sim/simscsi.c b/kernel/arch/ia64/hp/sim/simscsi.c
index 3a428f19a..085047f3a 100644
--- a/kernel/arch/ia64/hp/sim/simscsi.c
+++ b/kernel/arch/ia64/hp/sim/simscsi.c
@@ -368,13 +368,4 @@ simscsi_init(void)
scsi_host_put(host);
return error;
}
-
-static void __exit
-simscsi_exit(void)
-{
- scsi_remove_host(host);
- scsi_host_put(host);
-}
-
-module_init(simscsi_init);
-module_exit(simscsi_exit);
+device_initcall(simscsi_init);