i7300_idle: Fix compile warning CONFIG_I7300_IDLE_IOAT_CHANNEL not defined
authorVenki Pallipadi <[email protected]>
Thu, 23 Oct 2008 22:39:06 +0000 (15:39 -0700)
committerLen Brown <[email protected]>
Fri, 24 Oct 2008 16:59:47 +0000 (12:59 -0400)
When I7300_idle driver is not configured, there is a compile time
warning about IDLE_IOAT_CHANNEL not defined. Fix it.

Reported-by: Suresh Siddha <[email protected]>
Reported-by: Arjan van de Ven <[email protected]>
Signed-off-by: Venkatesh Pallipadi <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/dma/ioat_dma.c

index fd1631d0a795e8c490bd083552f243dd6aaefd09..c6d0ca24eedc9411f708ee9930444628f36958bb 100644 (file)
@@ -172,7 +172,7 @@ static int ioat_dma_enumerate_channels(struct ioatdma_device *device)
        xfercap_scale = readb(device->reg_base + IOAT_XFERCAP_OFFSET);
        xfercap = (xfercap_scale == 0 ? -1 : (1UL << xfercap_scale));
 
-#if CONFIG_I7300_IDLE_IOAT_CHANNEL
+#ifdef  CONFIG_I7300_IDLE_IOAT_CHANNEL
        if (i7300_idle_platform_probe(NULL, NULL) == 0) {
                device->common.chancnt--;
        }