Skip to content

Commit f371be6

Browse files
Venki Pallipadilenb
authored andcommitted
i7300_idle: Fix compile warning CONFIG_I7300_IDLE_IOAT_CHANNEL not defined
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]>
1 parent 33093e1 commit f371be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/ioat_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int ioat_dma_enumerate_channels(struct ioatdma_device *device)
172172
xfercap_scale = readb(device->reg_base + IOAT_XFERCAP_OFFSET);
173173
xfercap = (xfercap_scale == 0 ? -1 : (1UL << xfercap_scale));
174174

175-
#if CONFIG_I7300_IDLE_IOAT_CHANNEL
175+
#ifdef CONFIG_I7300_IDLE_IOAT_CHANNEL
176176
if (i7300_idle_platform_probe(NULL, NULL) == 0) {
177177
device->common.chancnt--;
178178
}

0 commit comments

Comments
 (0)