From: Grygorii Strashko <grygorii.strashko@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mtd: spi: spi_flash: fix build with dma enabled
Date: Thu, 28 Jun 2018 14:26:10 -0500 [thread overview]
Message-ID: <20180628192610.28197-1-grygorii.strashko@ti.com> (raw)
Fix build with CONFIG_DMA enabled
drivers/mtd/spi/spi_flash.c:376: undefined reference to `dma_memcpy'
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
drivers/mtd/spi/spi_flash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index c159124..d6cbdf2 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -457,7 +457,7 @@ int spi_flash_read_common(struct spi_flash *flash, const u8 *cmd,
*/
void __weak spi_flash_copy_mmap(void *data, void *offset, size_t len)
{
-#ifdef CONFIG_DMA
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_DMA)
if (!dma_memcpy(data, offset, len))
return;
#endif
--
2.10.5
next reply other threads:[~2018-06-28 19:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-28 19:26 Grygorii Strashko [this message]
2018-07-16 8:56 ` [U-Boot] [PATCH] mtd: spi: spi_flash: fix build with dma enabled Jagan Teki
2018-07-20 21:43 ` Grygorii Strashko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180628192610.28197-1-grygorii.strashko@ti.com \
--to=grygorii.strashko@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.