All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amitoj Kaur Chawla <amitoj1606@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: [PATCH 0/4] staging: most: hdm-dim2: Use devm_* functions
Date: Thu, 18 Feb 2016 20:11:16 +0530	[thread overview]
Message-ID: <cover.1455803765.git.amitoj1606@gmail.com> (raw)

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



             reply	other threads:[~2016-02-18 14:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18 14:41 Amitoj Kaur Chawla [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1455803765.git.amitoj1606@gmail.com \
    --to=amitoj1606@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.