Skip to content

Commit

Permalink
dmaengine: move .device_release missing log warning to debug level
Browse files Browse the repository at this point in the history
Dmaengine core warns the drivers registering for missing .device_release
implementation. The warning is accurate for dmaengine controllers which
hotplug but not for rest.

So reduce this to a debug log.

Link: https://lore.kernel.org/r/20200306135018.2286959-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Vinod Koul committed Mar 11, 2020
1 parent cf7da89 commit f91da3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ int dma_async_device_register(struct dma_device *device)
}

if (!device->device_release)
dev_warn(device->dev,
dev_dbg(device->dev,
"WARN: Device release is not defined so it is not safe to unbind this driver while in use\n");

kref_init(&device->ref);
Expand Down

0 comments on commit f91da3b

Please sign in to comment.