On Fri, 20 Apr 2007, boku wrote:
> Hi,
> I'm using 2.6.18 and patching the sdio source code. My target is PXA270.
> But when I attempt make kernel, it shows errors at compiling the pnp as
> follows:
> drivers/built-in.o: In function `pnp_check_dma':
> drivers/pnp/resource.c:453: undefined reference to `request_dma'
> drivers/pnp/resource.c:455: undefined reference to `free_dma'
>
> Do I need to select the pnp if I wanna have a p&p sdio device no matter it's
> memory device or sdio device?
For now the code requires CONFIG_PNP to be active. That will change
eventually.
In the mean time, please try this patch on top of the others:
Index: linux/drivers/pnp/resource.c
===================================================================
--- linux.orig/drivers/pnp/resource.c
+++ linux/drivers/pnp/resource.c
@@ -420,7 +420,7 @@ int pnp_check_irq(struct pnp_dev * dev,
int pnp_check_dma(struct pnp_dev * dev, int idx)
{
-#ifndef CONFIG_IA64
+#if !defined(CONFIG_IA64) && !defined(CONFIG_ARM)
int tmp;
struct pnp_dev *tdev;
resource_size_t * dma = &dev->res.dma_resource[idx].start;
Nicolas
|