From: Greg KH <gregkh@linuxfoundation.org>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] staging: most: hdm-dim2: Use devm_ functions
Date: Sun, 14 Feb 2016 16:52:09 -0800 [thread overview]
Message-ID: <20160215005209.GA19167@kroah.com> (raw)
In-Reply-To: <20160213174801.GA15312@amitoj-Inspiron-3542>
On Sat, Feb 13, 2016 at 11:18:01PM +0530, Amitoj Kaur Chawla wrote:
> 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 and header file
> linux/device.h has been added to ensure devm_* routine declarations
> are unambiguously available.
That's a lot to just do in one patch :(
Do only one conversion at a time, and be _VERY_ careful about the
request_irq() change, that has some tricky side-affects if you don't
watch out. If you don't know about the side affects, don't make the
change please.
So please break this up into different patches, and no need for the
device.h change, that's not needed at all.
thanks,
greg k-h
next prev parent reply other threads:[~2016-02-15 0:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 17:48 [PATCH] staging: most: hdm-dim2: Use devm_ functions Amitoj Kaur Chawla
2016-02-15 0:52 ` Greg KH [this message]
2016-02-15 1:53 ` [Outreachy kernel] " Amitoj Kaur Chawla
2016-02-15 6:29 ` Julia Lawall
2016-02-15 12:54 ` Amitoj Kaur Chawla
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=20160215005209.GA19167@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=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.