From: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org
Subject: Re: [PATCH 3/3] of: Remove unused of_find_device_by_phandle()
Date: Mon, 19 Jul 2010 10:06:11 +1000 [thread overview]
Message-ID: <1279497971.10390.1757.camel@pasglop> (raw)
In-Reply-To: <20100714233141.21887.81866.stgit@angua>
On Wed, 2010-07-14 at 17:31 -0600, Grant Likely wrote:
> Signed-off-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Acked-by: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
> ---
> arch/microblaze/include/asm/of_platform.h | 2 --
> arch/microblaze/kernel/of_platform.c | 18 ------------------
> arch/powerpc/include/asm/of_platform.h | 2 --
> arch/powerpc/kernel/of_platform.c | 19 -------------------
> 4 files changed, 0 insertions(+), 41 deletions(-)
>
> diff --git a/arch/microblaze/include/asm/of_platform.h b/arch/microblaze/include/asm/of_platform.h
> index 625003f..353d8f6 100644
> --- a/arch/microblaze/include/asm/of_platform.h
> +++ b/arch/microblaze/include/asm/of_platform.h
> @@ -14,8 +14,6 @@
> /* This is just here during the transition */
> #include <linux/of_platform.h>
>
> -extern struct of_device *of_find_device_by_phandle(phandle ph);
> -
> extern void of_instantiate_rtc(void);
>
> #endif /* _ASM_MICROBLAZE_OF_PLATFORM_H */
> diff --git a/arch/microblaze/kernel/of_platform.c b/arch/microblaze/kernel/of_platform.c
> index 33212bb..80c9c49 100644
> --- a/arch/microblaze/kernel/of_platform.c
> +++ b/arch/microblaze/kernel/of_platform.c
> @@ -63,21 +63,3 @@ struct of_device *of_find_device_by_node(struct device_node *np)
> return NULL;
> }
> EXPORT_SYMBOL(of_find_device_by_node);
> -
> -static int of_dev_phandle_match(struct device *dev, void *data)
> -{
> - phandle *ph = data;
> - return to_of_device(dev)->dev.of_node->phandle == *ph;
> -}
> -
> -struct of_device *of_find_device_by_phandle(phandle ph)
> -{
> - struct device *dev;
> -
> - dev = bus_find_device(&platform_bus_type,
> - NULL, &ph, of_dev_phandle_match);
> - if (dev)
> - return to_of_device(dev);
> - return NULL;
> -}
> -EXPORT_SYMBOL(of_find_device_by_phandle);
> diff --git a/arch/powerpc/include/asm/of_platform.h b/arch/powerpc/include/asm/of_platform.h
> index b37d2dc..d506aa6 100644
> --- a/arch/powerpc/include/asm/of_platform.h
> +++ b/arch/powerpc/include/asm/of_platform.h
> @@ -11,8 +11,6 @@
> *
> */
>
> -extern struct of_device *of_find_device_by_phandle(phandle ph);
> -
> extern void of_instantiate_rtc(void);
>
> #endif /* _ASM_POWERPC_OF_PLATFORM_H */
> diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c
> index a3d7154..b093d4b 100644
> --- a/arch/powerpc/kernel/of_platform.c
> +++ b/arch/powerpc/kernel/of_platform.c
> @@ -68,25 +68,6 @@ struct of_device *of_find_device_by_node(struct device_node *np)
> }
> EXPORT_SYMBOL(of_find_device_by_node);
>
> -static int of_dev_phandle_match(struct device *dev, void *data)
> -{
> - phandle *ph = data;
> - return to_of_device(dev)->dev.of_node->phandle == *ph;
> -}
> -
> -struct of_device *of_find_device_by_phandle(phandle ph)
> -{
> - struct device *dev;
> -
> - dev = bus_find_device(&platform_bus_type,
> - NULL, &ph, of_dev_phandle_match);
> - if (dev)
> - return to_of_device(dev);
> - return NULL;
> -}
> -EXPORT_SYMBOL(of_find_device_by_phandle);
> -
> -
> #ifdef CONFIG_PPC_OF_PLATFORM_PCI
>
> /* The probing of PCI controllers from of_platform is currently
next prev parent reply other threads:[~2010-07-19 0:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 23:31 [PATCH 1/3] of/flattree: Use common ALIGN() macro instead of arch specific _ALIGN Grant Likely
2010-07-14 23:31 ` [PATCH 2/3] of/flattree: Fix crash when device tree absent Grant Likely
2010-07-15 1:11 ` Jeremy Kerr
[not found] ` <1279156262.15089.68.camel-353AF/3W9ll+urZeOPWqwQ@public.gmane.org>
2010-07-15 6:15 ` Grant Likely
[not found] ` <AANLkTikD3ZhhVg4PTuG5Zkc38oW1I6yaQyKqcv9rAaoR-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-15 7:26 ` Jeremy Kerr
2010-07-19 0:04 ` Benjamin Herrenschmidt
2010-07-19 4:37 ` Grant Likely
2010-07-14 23:31 ` [PATCH 3/3] of: Remove unused of_find_device_by_phandle() Grant Likely
2010-07-19 0:06 ` Benjamin Herrenschmidt [this message]
2010-07-15 1:12 ` [PATCH 1/3] of/flattree: Use common ALIGN() macro instead of arch specific _ALIGN Jeremy Kerr
2010-07-19 0:03 ` Benjamin Herrenschmidt
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=1279497971.10390.1757.camel@pasglop \
--to=benh-xvmvhmargas8u2djnn8i7kb+6bgklq7r@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
--cc=jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox