Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f371be63 authored by Venki Pallipadi's avatar Venki Pallipadi Committed by Len Brown
Browse files

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: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
Reported-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 33093e18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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--;
	}