dmaengine: idxd: idxd: move remove() bits for idxd 'struct device' to device.c
authorDave Jiang <dave.jiang@intel.com>
Thu, 15 Jul 2021 18:44:07 +0000 (11:44 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 21 Jul 2021 04:39:15 +0000 (10:09 +0530)
commit745e92a6d816277fcbd231bda5ad2d882b22fe52
treeaa1ff14f262f93dcae62d03a4bc695b4a6bd863c
parentbd42805b5da33b9c75f3ce0ae9d6ff0ec3f2cd6b
dmaengine: idxd: idxd: move remove() bits for idxd 'struct device' to device.c

Move the code related to a ->remove() function for the idxd
'struct device' to device.c to prep for the idxd device
sub-driver in device.c.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162637464768.744545.15797285510999151668.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/sysfs.c