Skip to content

Commit

Permalink
of: remove asm/of_device.h
Browse files Browse the repository at this point in the history
It is mostly unused now.  Sparc has a few defines left in it, but they
can be moved to other headers.  Removing this header means that new
architectures adding CONFIG_OF support don't need to also add this
header file.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Grant Likely committed Jul 24, 2010
1 parent 129ac79 commit 2959604
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 36 deletions.
13 changes: 0 additions & 13 deletions arch/microblaze/include/asm/of_device.h

This file was deleted.

3 changes: 0 additions & 3 deletions arch/powerpc/include/asm/of_device.h

This file was deleted.

2 changes: 2 additions & 0 deletions arch/sparc/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ struct dev_archdata {
int numa_node;
};

extern void of_propagate_archdata(struct platform_device *bus);

struct pdev_archdata {
struct resource resource[PROMREG_MAX];
unsigned int irqs[PROMINTR_MAX];
Expand Down
19 changes: 0 additions & 19 deletions arch/sparc/include/asm/of_device.h

This file was deleted.

4 changes: 4 additions & 0 deletions arch/sparc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ extern void prom_build_devicetree(void);
extern void of_populate_present_mask(void);
extern void of_fill_in_cpu_data(void);

struct resource;
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);

/* These routines are here to provide compatibility with how powerpc
* handles IRQ mapping for OF device nodes. We precompute and permanently
* register them in the of_device objects, whereas powerpc computes them
Expand Down
2 changes: 1 addition & 1 deletion include/linux/of_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
*/
#define of_device platform_device
#include <linux/platform_device.h>
#include <linux/of_platform.h> /* temporary until merge */

#ifdef CONFIG_OF_DEVICE
#include <linux/device.h>
#include <linux/of.h>
#include <linux/mod_devicetable.h>
#include <asm/of_device.h>

#define to_of_device(d) container_of(d, struct of_device, dev)

Expand Down

0 comments on commit 2959604

Please sign in to comment.