]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: cppi41: Clean up pointless warnings
authorTony Lindgren <tony@atomide.com>
Fri, 20 Jan 2017 20:07:53 +0000 (12:07 -0800)
committerVinod Koul <vinod.koul@intel.com>
Wed, 25 Jan 2017 06:00:50 +0000 (11:30 +0530)
commitab55f3e002c68849f8f30258a1e724d65ea8b185
treeae11c9f5fc165ff602a239acf74393ad32a5209b
parent7b8e9474f6ecae961faad35aad1669ba438b622f
dmaengine: cppi41: Clean up pointless warnings

With patches "dmaengine: cppi41: Fix runtime PM timeouts with USB mass
storage", and "dmaengine: cppi41: Fix oops in cppi41_runtime_resume",
the pm_runtime_get/put() in cppi41_irq() is no longer needed. We now
guarantee that cppi41 is enabled when dma is in use.

We can still get pointless error -115 when musb is configured as a
usb peripheral. That's because we should now check for the state of
is_suspended instead.

Let's just remove the now useless code and replace it with a WARN().

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/cppi41.c