Re: [PATCHv3 6/7] dma: move dw_dmac driver to an own directory

From: Felipe Balbi
Date: Thu Sep 27 2012 - 03:56:13 EST


On Thu, Sep 27, 2012 at 10:32:00AM +0300, Andy Shevchenko wrote:
> The dw_dmac driver contains multiple files. To make a managment of them more

typo: 'management'

> convenient move it to an own directory.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> drivers/dma/Makefile | 3 +--
> drivers/dma/dw/Makefile | 2 ++
> drivers/dma/{ => dw}/dw_dmac.c | 2 +-
> drivers/dma/{ => dw}/dw_dmac_pci.c | 0
> drivers/dma/{ => dw}/dw_dmac_regs.h | 0
> 5 files changed, 4 insertions(+), 3 deletions(-)
> create mode 100644 drivers/dma/dw/Makefile
> rename drivers/dma/{ => dw}/dw_dmac.c (99%)
> rename drivers/dma/{ => dw}/dw_dmac_pci.c (100%)
> rename drivers/dma/{ => dw}/dw_dmac_regs.h (100%)
>
> diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile
> index 15eef5f..122a48a 100644
> --- a/drivers/dma/Makefile
> +++ b/drivers/dma/Makefile
> @@ -11,8 +11,7 @@ obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o
> obj-$(CONFIG_FSL_DMA) += fsldma.o
> obj-$(CONFIG_MPC512X_DMA) += mpc512x_dma.o
> obj-$(CONFIG_MV_XOR) += mv_xor.o
> -obj-$(CONFIG_DW_DMAC) += dw_dmac.o
> -obj-$(CONFIG_DW_DMAC_PCI) += dw_dmac_pci.o
> +obj-$(CONFIG_DW_DMAC) += dw/
> obj-$(CONFIG_AT_HDMAC) += at_hdmac.o
> obj-$(CONFIG_MX3_IPU) += ipu/
> obj-$(CONFIG_TXX9_DMAC) += txx9dmac.o
> diff --git a/drivers/dma/dw/Makefile b/drivers/dma/dw/Makefile
> new file mode 100644
> index 0000000..2edfb24
> --- /dev/null
> +++ b/drivers/dma/dw/Makefile
> @@ -0,0 +1,2 @@
> +obj-$(CONFIG_DW_DMAC) += dw_dmac.o
> +obj-$(CONFIG_DW_DMAC_PCI) += dw_dmac_pci.o
> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw/dw_dmac.c
> similarity index 99%
> rename from drivers/dma/dw_dmac.c
> rename to drivers/dma/dw/dw_dmac.c
> index 9f0129d..fa0471a 100644
> --- a/drivers/dma/dw_dmac.c
> +++ b/drivers/dma/dw/dw_dmac.c
> @@ -24,8 +24,8 @@
> #include <linux/platform_device.h>
> #include <linux/slab.h>
>
> +#include "../dmaengine.h"
> #include "dw_dmac_regs.h"
> -#include "dmaengine.h"
>
> /*
> * This supports the Synopsys "DesignWare AHB Central DMA Controller",
> diff --git a/drivers/dma/dw_dmac_pci.c b/drivers/dma/dw/dw_dmac_pci.c
> similarity index 100%
> rename from drivers/dma/dw_dmac_pci.c
> rename to drivers/dma/dw/dw_dmac_pci.c
> diff --git a/drivers/dma/dw_dmac_regs.h b/drivers/dma/dw/dw_dmac_regs.h
> similarity index 100%
> rename from drivers/dma/dw_dmac_regs.h
> rename to drivers/dma/dw/dw_dmac_regs.h
> --
> 1.7.10.4
>
> --
> 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/

--
balbi

Attachment: signature.asc
Description: Digital signature