Re: [patch,v3,repost 07/10] megaraid_sas: use scsi_host_alloc_node
From: adam radford
Date: Mon Dec 03 2012 - 20:46:32 EST
On Tue, Nov 27, 2012 at 8:46 AM, Jeff Moyer <jmoyer@xxxxxxxxxx> wrote:
>
> Signed-off-by: Jeff Moyer <jmoyer@xxxxxxxxxx>
> ---
> drivers/scsi/megaraid/megaraid_sas_base.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
> index d2c5366..707a6cd 100644
> --- a/drivers/scsi/megaraid/megaraid_sas_base.c
> +++ b/drivers/scsi/megaraid/megaraid_sas_base.c
> @@ -4020,8 +4020,9 @@ megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
> if (megasas_set_dma_mask(pdev))
> goto fail_set_dma_mask;
>
> - host = scsi_host_alloc(&megasas_template,
> - sizeof(struct megasas_instance));
> + host = scsi_host_alloc_node(&megasas_template,
> + sizeof(struct megasas_instance),
> + dev_to_node(&pdev->dev));
>
> if (!host) {
> printk(KERN_DEBUG "megasas: scsi_host_alloc failed\n");
Acked-by: Adam Radford <aradford@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/