All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] staging: most: hdm-dim2: Use devm_* functions
@ 2016-02-18 14:41 Amitoj Kaur Chawla
  2016-02-18 14:41 ` [PATCH 1/4] staging: most: hdm-dim2: Replace kzalloc with devm_kzalloc Amitoj Kaur Chawla
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Amitoj Kaur Chawla @ 2016-02-18 14:41 UTC (permalink / raw)
  To: outreachy-kernel

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(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-02-28 13:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 14:41 [PATCH 0/4] staging: most: hdm-dim2: Use devm_* functions Amitoj Kaur Chawla
2016-02-18 14:41 ` [PATCH 1/4] staging: most: hdm-dim2: Replace kzalloc with devm_kzalloc Amitoj Kaur Chawla
2016-02-18 14:41 ` [PATCH 2/4] staging: most: hdm-dim2: Switch to devm_ioremap_resource() Amitoj Kaur Chawla
2016-02-18 14:42 ` [PATCH 3/4] staging: most: hdm-dim2: Replace request_irq with devm_request_irq Amitoj Kaur Chawla
2016-02-18 14:42 ` [PATCH 4/4] staging: most: hdm-dim2: Replace pr_err with dev_err Amitoj Kaur Chawla
2016-02-28 13:44 ` [Outreachy kernel] [PATCH 0/4] staging: most: hdm-dim2: Use devm_* functions Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.