diff options
| author | Suniel Mahesh <[email protected]> | 2017-09-07 12:00:11 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-09-17 16:35:25 +0200 |
| commit | 7f6f832d258a1b411dcc3ba9345ed3036fe05ca5 (patch) | |
| tree | c35c8e4fb5969918b5ed892c66981f0cd68f87ff /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | ce58df6394c2a830ca184c2e9fe8d1bb425a665a (diff) | |
staging: ccree: Use platform_get_irq and devm_request_irq
It is recommended to use managed function devm_request_irq(),
which simplifies driver cleanup paths and driver code.
This patch does the following:
(a) replace platform_get_resource(), request_irq() and corresponding
error handling with platform_get_irq() and devm_request_irq().
(b) remove struct resource pointer(res_irq) in struct ssi_drvdata as
it seems redundant.
(c) change type of member irq in struct ssi_drvdata from unsigned int
to int, as return type of platform_get_irq is int and can be used in
error handling.
(d) remove irq_registered variable from driver probe as it seems
redundant.
(e) free_irq is not required any more, devm_request_irq() free's it
on driver detach.
(f) adjust log messages accordingly and remove any blank lines.
Signed-off-by: Suniel Mahesh <[email protected]>
Acked-by: Gilad Ben-Yossef <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions