Re: [PATCH 2/2] mmc: atmel: get rid of struct mci_dma_data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jan 9, 2016 at 3:22 AM, Mans Rullgard <mans@xxxxxxxxx> wrote:
> As struct mci_dma_data is now only used by AVR32, it is nothing but
> pointless indirection.  Replace it with struct dw_dma_slave in the
> AVR32 platform code and with a void pointer elsewhere.
>
> Signed-off-by: Mans Rullgard <mans@xxxxxxxxx>

> @@ -1376,15 +1375,15 @@ at32_add_device_mci(unsigned int id, struct mci_platform_data *data)
>                                 ARRAY_SIZE(atmel_mci0_resource)))
>                 goto fail;
>
> -       slave = kzalloc(sizeof(struct mci_dma_data), GFP_KERNEL);
> +       slave = kzalloc(sizeof(*slave), GFP_KERNEL);
>         if (!slave)
>                 goto fail;
>
> -       slave->sdata.dma_dev = &dw_dmac0_device.dev;
> -       slave->sdata.src_id = 0;
> -       slave->sdata.dst_id = 1;
> -       slave->sdata.m_master = 1;
> -       slave->sdata.p_master = 0;

Seems you based this on top of our non-submitted yet patches.

> +       slave->dma_dev = &dw_dmac0_device.dev;
> +       slave->src_id = 0;
> +       slave->dst_id = 1;
> +       slave->m_master = 1;
> +       slave->p_master = 0;


-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux