staging: most: hdm-dim2: Use devm_* functions
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | staging: most: hdm-dim2: Replace kzalloc with devm_kzallocdrivers/ | +3 | 0 replies | |
| 2/4 | staging: most: hdm-dim2: Switch to devm_ioremap_resource()drivers/ | +5 | 0 replies | |
| 3/4 | staging: most: hdm-dim2: Replace request_irq with devm_request_irqdrivers/ | +3 | 0 replies | |
| 4/4 | staging: most: hdm-dim2: Replace pr_err with dev_errdrivers/ | +3 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Tejun Heo |
|---|---|
| Series | A-b |
| 1/4 | |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] staging: most: hdm-dim2: Use devm_* functions
Devm_ functions allocate memory that is released when a driver detaches. Replace kzalloc, ioremap and request_irq with their devm_* counterparts in the probe function of a platform device which were originally freed in the remove function.
Also, unnecessary labels have been removed, an unnecessary platform_set_drvdata has been removed as well as switching from pr_err to dev_err.
Amitoj Kaur Chawla (4):
staging: most: hdm-dim2: Replace kzalloc with devm_kzalloc
staging: most: hdm-dim2: Switch to devm_ioremap_resource()
staging: most: hdm-dim2: Replace request_irq with devm_request_irq
staging: most: hdm-dim2: Replace pr_err with dev_err
drivers/staging/most/hdm-dim2/dim2_hdm.c | 58 +++++++------------------------- 1 file changed, 12 insertions(+), 46 deletions(-)
Signature · 1 line
1.9.1