Skip to content

staging: most: hdm-dim2: Use devm_* functions

Amitoj Kaur Chawla outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: most: hdm-dim2: Replace kzalloc with devm_kzallocdrivers/staging/most/hdm-dim2/dim2_hdm.c+3 -60 replies
2/4staging: most: hdm-dim2: Switch to devm_ioremap_resource()drivers/staging/most/hdm-dim2/dim2_hdm.c+5 -280 replies
3/4staging: most: hdm-dim2: Replace request_irq with devm_request_irqdrivers/staging/most/hdm-dim2/dim2_hdm.c+3 -110 replies
4/4staging: most: hdm-dim2: Replace pr_err with dev_errdrivers/staging/most/hdm-dim2/dim2_hdm.c+3 -30 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.

PatchTejun Heo
SeriesA-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.

Read the v1 thread

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