blob: 78a038452c0faa0106f3a0f7bb48e50e811c91da [file] [log] [blame]
Michal Simek0a7d8002009-03-27 14:25:44 +01001/*
2 * Arch specific extensions to struct device
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License v2. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 */
8
9#ifndef _ASM_MICROBLAZE_DEVICE_H
10#define _ASM_MICROBLAZE_DEVICE_H
11
12struct device_node;
13
14struct dev_archdata {
15 /* Optional pointer to an OF device node */
16 struct device_node *of_node;
17};
18
Magnus Dammd7aacad2009-07-08 13:21:31 +020019struct pdev_archdata {
20};
21
Michal Simekd68bf972009-11-23 10:07:51 +010022static inline void dev_archdata_set_node(struct dev_archdata *ad,
23 struct device_node *np)
24{
25 ad->of_node = np;
26}
27
28static inline struct device_node *
29dev_archdata_get_node(const struct dev_archdata *ad)
30{
31 return ad->of_node;
32}
33
Michal Simek0a7d8002009-03-27 14:25:44 +010034#endif /* _ASM_MICROBLAZE_DEVICE_H */
35
36