linux/drivers/dma/qcom
Sinan Kaya c6e4584dab dmaengine: qcom_hidma: cleanup sysfs entries during remove
The 4.8-rc8 kernel is printing duplicate file entry warnings while removing
the HIDMA object. This is caused by stale sysfs entries remaining from the
previous execution.

_sysfs_warn_dup+0x5c/0x78
 sysfs_add_file_mode_ns+0x13c/0x1c0
 sysfs_create_file_ns+0x2c/0x40
 device_create_file+0x54/0xa0
 hidma_probe+0x7c8/0x808

Create hidma_sysfs_init and hidma_sysfs_uninit functions and call them from
the probe and remove path. To do proper clean up, adding the attrs object
to the device data structure to keep it around until remove call is made.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2016-11-15 08:58:12 +05:30
..
Kconfig dmaengine: add Qualcomm Technologies HIDMA channel driver 2016-03-11 07:42:30 +05:30
Makefile dmaengine: qcom_hidma: add debugfs hooks 2016-05-14 11:54:45 +05:30
bam_dma.c dmaengine: qcom-bam-dma: add __maybe_unused annotations for PM 2016-07-06 22:39:43 +05:30
hidma.c dmaengine: qcom_hidma: cleanup sysfs entries during remove 2016-11-15 08:58:12 +05:30
hidma.h dmaengine: qcom_hidma: cleanup sysfs entries during remove 2016-11-15 08:58:12 +05:30
hidma_dbg.c dmaengine: qcom_hidma: make pending_tre_count atomic 2016-11-03 18:55:44 +05:30
hidma_ll.c dmaengine: qcom_hidma: add MSI support for interrupts 2016-11-03 18:55:45 +05:30
hidma_mgmt.c dmaengine: qcom_hidma: remove unneeded of_node_put() 2016-11-14 09:08:32 +05:30
hidma_mgmt.h
hidma_mgmt_sys.c