summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_rdc.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-11-17 15:08:01 +0300
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-12-07 03:02:05 +0300
commitce657b1cddf1f88c56ae683efa7130341c92808b (patch)
treec21cbca7e01935dc303b6dd7bdfb4f67ecc4ea47 /drivers/ata/pata_rdc.c
parentffc30b74fd6d01588bd3fdebc3b1acc0857e6fc8 (diff)
downloadlinux-ce657b1cddf1f88c56ae683efa7130341c92808b.tar.xz
component: add support for releasing match data
The component helper treats the void match data pointer as an opaque object which needs no further management. When device nodes being passed, this is not true: the caller should pass its refcount to the component helper, and there should be a way to drop the refcount when the matching information is destroyed. This patch provides a per-match release method in addition to the match method to solve this issue. Rather than using component_match_add(), users should use component_match_add_release() which takes an additional function pointer for releasing this reference. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/ata/pata_rdc.c')
0 files changed, 0 insertions, 0 deletions