Skip to contentSkip to conversation

mtd: rawnand: qcom: don't include dma-direct.h

PATCH Applied Christoph Hellwig 3 participants 4 messages Aug 27, 2018 – Sep 4, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: rawnand: qcom: don't include dma-direct.h

A recent commit removed the incorrect use of phys_to_dma from this driver, but failed to remove the dma-direct.h include, so do that now.

---
 drivers/mtd/nand/raw/qcom_nandc.c | 1 -
 include/linux/dma-mapping.h       | 6 ++++++
 2 files changed, 6 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/qcom_nandc.c +0 -1
index d1d470bb32e4..d2831b0b28fb 100644
@@ -23,7 +23,6 @@
 #include <linux/of_device.h>
 #include <linux/delay.h>
 #include <linux/dma/qcom_bam_dma.h>
-#include <linux/dma-direct.h> /* XXX: drivers shall never use this directly! */
 
 /* NANDc reg offsets */
 #define	NAND_FLASH_CMD			0x00
#1 lore raw
Quoted 10 lines · Christoph Hellwig

A recent commit removed the incorrect use of phys_to_dma from this driver, but failed to remove the dma-direct.h include, so do that now.

---
 drivers/mtd/nand/raw/qcom_nandc.c | 1 -
 include/linux/dma-mapping.h       | 6 ++++++
 2 files changed, 6 insertions(+), 1 deletion(-)

Hmm, the diffstat does not match the diff itself.

Quoted 16 lines
drivers/mtd/nand/raw/qcom_nandc.c +0 -1
index d1d470bb32e4..d2831b0b28fb 100644
@@ -23,7 +23,6 @@
 #include <linux/of_device.h>
 #include <linux/delay.h>
 #include <linux/dma/qcom_bam_dma.h>
-#include <linux/dma-direct.h> /* XXX: drivers shall never use this directly! */
 
 /* NANDc reg offsets */
 #define        NAND_FLASH_CMD                  0x00

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Signature · 2 lines
Thanks,
//richard
#2 lore raw
Quoted 6 lines · Richard Weinberger
Quoted 5 lines · Christoph Hellwig

A recent commit removed the incorrect use of phys_to_dma from this driver, but failed to remove the dma-direct.h include, so do that now.

Quoted 7 lines
Quoted 5 lines
---
 drivers/mtd/nand/raw/qcom_nandc.c | 1 -
 include/linux/dma-mapping.h       | 6 ++++++
 2 files changed, 6 insertions(+), 1 deletion(-)

Hmm, the diffstat does not match the diff itself.

Tha's because it had an accidental hunk in my tree I removed when sending. I think you can trust the diff, but if you really want I can resend.

maintainer Applied
#3 lore raw

Hi Christoph,

Christoph Hellwig <[email protected]> wrote on Mon, 27 Aug 2018 14:31:07 +0200:

Quoted 13 lines · Richard Weinberger
Quoted 12 lines · Christoph Hellwig
Quoted 10 lines

A recent commit removed the incorrect use of phys_to_dma from this driver, but failed to remove the dma-direct.h include, so do that now.

---
 drivers/mtd/nand/raw/qcom_nandc.c | 1 -
 include/linux/dma-mapping.h       | 6 ++++++
 2 files changed, 6 insertions(+), 1 deletion(-)  
Quoted 5 lines
Quoted 1 line

Hmm, the diffstat does not match the diff itself.

Tha's because it had an accidental hunk in my tree I removed when sending. I think you can trust the diff, but if you really want I can resend.

Applied to nand/next.

Thanks,
Miquèl