From: jeffy <jeffy.chen@rock-chips.com>
To: Lee Jones <lee.jones@linaro.org>
Cc: linux-kernel@vger.kernel.org, briannorris@chromium.org,
dtor@chromium.org, dianders@chromium.org
Subject: Re: [PATCH] mfd: cros_ec: Add missing free_irq in cros_ec_remove
Date: Mon, 12 Jun 2017 16:45:52 +0800 [thread overview]
Message-ID: <593E54C0.8030303@rock-chips.com> (raw)
In-Reply-To: <20170612081754.mg6pnrr45wq2jj7a@dell>
Hi Lee,
On 06/12/2017 04:17 PM, Lee Jones wrote:
> mfd: cros_ec: Add missing free_irq in cros_ec_remove
>
> It would be better to use more English and less code in the patch's
> subject line. Something like "Clean-up IRQ on unbind" Or "Free IRQ on
> exit". Something of that nature.
>
> Also, you should populate the commit log with what are you doing and
> why is it required.
oh, right, thanks for your comment, i'll rewrite it :)
>
>> Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
>>
>> ---
>>
>> drivers/mfd/cros_ec.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c
>> index e31ac60..dc6ce90 100644
>> --- a/drivers/mfd/cros_ec.c
>> +++ b/drivers/mfd/cros_ec.c
>> @@ -183,6 +183,9 @@ int cros_ec_remove(struct cros_ec_device *ec_dev)
>>
>> cros_ec_acpi_remove_gpe_handler();
>>
>> + if (ec_dev->irq)
>> + free_irq(ec_dev->irq, ec_dev);
>> +
>> return 0;
>> }
>> EXPORT_SYMBOL(cros_ec_remove);
>
prev parent reply other threads:[~2017-06-12 8:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-12 5:47 [PATCH] mfd: cros_ec: Add missing free_irq in cros_ec_remove Jeffy Chen
2017-06-12 8:17 ` Lee Jones
2017-06-12 8:45 ` jeffy [this message]
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=593E54C0.8030303@rock-chips.com \
--to=jeffy.chen@rock-chips.com \
--cc=briannorris@chromium.org \
--cc=dianders@chromium.org \
--cc=dtor@chromium.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
/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.