58f9b0b024
This patch eliminates the node pointer from struct of_device and the of_node (or prom_node) pointer from struct dev_archdata since the node pointer is now part of struct device proper when CONFIG_OF is set, and all users of the old pointer locations have already been converted over to use device->of_node. Also remove dev_archdata_{get,set}_node() as it is no longer used by anything. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
38 lines
962 B
C
38 lines
962 B
C
#ifndef _ASM_SPARC_OF_DEVICE_H
|
|
#define _ASM_SPARC_OF_DEVICE_H
|
|
#ifdef __KERNEL__
|
|
|
|
#include <linux/device.h>
|
|
#include <linux/of.h>
|
|
#include <linux/mod_devicetable.h>
|
|
#include <asm/openprom.h>
|
|
|
|
/*
|
|
* The of_device is a kind of "base class" that is a superset of
|
|
* struct device for use by devices attached to an OF node and
|
|
* probed using OF properties.
|
|
*/
|
|
struct of_device
|
|
{
|
|
struct device dev;
|
|
struct resource resource[PROMREG_MAX];
|
|
unsigned int irqs[PROMINTR_MAX];
|
|
int num_irqs;
|
|
|
|
void *sysdata;
|
|
|
|
int slot;
|
|
int portid;
|
|
int clock_freq;
|
|
};
|
|
|
|
extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name);
|
|
extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size);
|
|
|
|
extern void of_propagate_archdata(struct of_device *bus);
|
|
|
|
/* This is just here during the transition */
|
|
#include <linux/of_platform.h>
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* _ASM_SPARC_OF_DEVICE_H */
|