[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <50600AA0.3080907@samsung.com>
Date: Mon, 24 Sep 2012 16:24:16 +0900
From: Chanwoo Choi <cw00.choi@...sung.com>
To: Peter Huewe <peterhuewe@....de>
Cc: MyungJoo Ham <myungjoo.ham@...sung.com>,
linux-kernel@...r.kernel.org, stable@...r.kernel.org,
Greg KH <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 2/2] extcon: unregister compat link on cleanup
On 09/22/2012 10:41 AM, Peter Huewe wrote:
> Since extcon registers this compat link at device registration
> (extcon_dev_register), we should probably remove them at deregistration/cleanup.
>
> Cc: stable@...r.kernel.org
> Signed-off-by: Peter Huewe <peterhuewe@....de>
> ---
Applied, thank you.
Also, there were some minor issue, but I fixed them up.
You will check it after some hours on below git repository.
-
http://git.infradead.org/users/kmpark/linux-samsung/shortlog/refs/heads/extcon-for-next
> drivers/extcon/extcon_class.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/extcon/extcon_class.c b/drivers/extcon/extcon_class.c
> index 6e914d0..7610b4e 100644
> --- a/drivers/extcon/extcon_class.c
> +++ b/drivers/extcon/extcon_class.c
> @@ -575,6 +575,11 @@ static void extcon_cleanup(struct extcon_dev *edev, bool skip)
> kfree(edev->cables);
> }
>
> +#if defined(CONFIG_ANDROID)
> + if (switch_class)
> + ret = class_compat_remove_link(switch_class, edev->dev,
> + NULL);
> +#endif /* CONFIG_ANDROID */
This patch have build break which show below log because 'ret' variable
isn't defined on extcon_cleanup function and class_compat_remove_link
function return void type after function call. So, I remove 'ret' variable.
drivers/extcon/extcon-class.c: In function 'extcon_cleanup':
drivers/extcon/extcon-class.c:574: error: 'ret' undeclared (first use in
this function)
drivers/extcon/extcon-class.c:574: error: (Each undeclared identifier is
reported only once
drivers/extcon/extcon-class.c:574: error: for each function it appears in.)
drivers/extcon/extcon-class.c: In function 'extcon_class_exit':
drivers/extcon/extcon-class.c:825: warning: extra tokens at end of
#ifdef directive
make[2]: *** [drivers/extcon/extcon-class.o] Error 1
make[1]: *** [drivers/extcon] Error 2
make[1]: *** Waiting for unfinished jobs....
Thanks,
Chanwoo Choi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists