lkml.org 
[lkml]   [2009]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] microblaze: Add dev_archdata node accessors
graeme.smecher@mail.mcgill.ca wrote:
> From: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
>
> This syncs microblaze with powerpc and sparc architectures, which gained the
> same accessors in Commit 3f3b1632022fcc8317fa3b3c1236471415b3a6b8.

I have the same patch in my next branch. Will be add to mainline soon.

Thanks,
Michal

>
> Signed-off-by: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
> ---
> arch/microblaze/include/asm/device.h | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h
> index 30286db..b8f654d 100644
> --- a/arch/microblaze/include/asm/device.h
> +++ b/arch/microblaze/include/asm/device.h
> @@ -16,6 +16,18 @@ struct dev_archdata {
> struct device_node *of_node;
> };
>
> +static inline void dev_archdata_set_node(struct dev_archdata *ad,
> + struct device_node *np)
> +{
> + ad->of_node = np;
> +}
> +
> +static inline struct device_node *
> +dev_archdata_get_node(const struct dev_archdata *ad)
> +{
> + return ad->of_node;
> +}
> +
> struct pdev_archdata {
> };
>


--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian


\
 
 \ /
  Last update: 2009-11-25 20:03    [W:0.076 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site