summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-03 12:16:12 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-08 09:10:05 -0800
commit2be975c6d920de989ff5e4bc09ffe87e59d94662 (patch)
tree34b24d6559118a4aedc60bdef265834530cacde9 /drivers/md/dm.h
parentfa8e2458ecfc959cd627e25ba86d8eddcb63c887 (diff)
downloadtalos-op-linux-2be975c6d920de989ff5e4bc09ffe87e59d94662.tar.gz
talos-op-linux-2be975c6d920de989ff5e4bc09ffe87e59d94662.zip
Input: introduce managed input devices (add devres support)
There is a demand from driver's writers to use managed devices framework for their drivers. Unfortunately up to this moment input devices did not provide support for managed devices and that lead to mixing two styles of resource management which usually introduced more bugs, such as manually unregistering input device but relying in devres to free interrupt handler which (unless device is properly shut off) can cause ISR to reference already freed memory. This change introduces devm_input_allocate_device() that will allocate managed instance of input device so that driver writers who prefer using devm_* framework do not have to mix 2 styles. Reviewed-by: Henrik Rydberg <rydberg@euromail.se> Reviewed-by: Tejun Heo <tj@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/md/dm.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud