From: Michal Simek Date: Mon, 23 Nov 2009 09:07:51 +0000 (+0100) Subject: microblaze: Adding dev_arch_data functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d68bf9705ad490ad86b0b1be9a2b91a363d6eccc;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git microblaze: Adding dev_arch_data functions The functions, dev_arch_data_set_node and get_node are missing and are needed by some device drivers such as I2C. Signed-off-by: John Linn Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h index 30286db27c1c..78a038452c0f 100644 --- a/arch/microblaze/include/asm/device.h +++ b/arch/microblaze/include/asm/device.h @@ -19,6 +19,18 @@ struct dev_archdata { struct pdev_archdata { }; +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; +} + #endif /* _ASM_MICROBLAZE_DEVICE_H */