Skip to content

Commit

Permalink
powerpc/pseries: Export device tree updating routines
Browse files Browse the repository at this point in the history
Export routines associated with adding and removing device tree nodes on
pseries needed for device tree updating.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Nathan Fontenot authored and Benjamin Herrenschmidt committed Oct 13, 2010
1 parent 4783f39 commit 2064897
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/platforms/pseries/dlpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct cc_workarea {
u32 prop_offset;
};

static void dlpar_free_cc_property(struct property *prop)
void dlpar_free_cc_property(struct property *prop)
{
kfree(prop->name);
kfree(prop->value);
Expand Down Expand Up @@ -102,7 +102,7 @@ static void dlpar_free_one_cc_node(struct device_node *dn)
kfree(dn);
}

static void dlpar_free_cc_nodes(struct device_node *dn)
void dlpar_free_cc_nodes(struct device_node *dn)
{
if (dn->child)
dlpar_free_cc_nodes(dn->child);
Expand Down
9 changes: 9 additions & 0 deletions arch/powerpc/platforms/pseries/pseries.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ struct device_node;
extern void request_event_sources_irqs(struct device_node *np,
irq_handler_t handler, const char *name);

#include <linux/of.h>

extern void __init fw_feature_init(const char *hypertas, unsigned long len);

struct pt_regs;
Expand Down Expand Up @@ -47,4 +49,11 @@ extern unsigned long rtas_poweron_auto;

extern void find_udbg_vterm(void);

/* Dynamic logical Partitioning/Mobility */
extern void dlpar_free_cc_nodes(struct device_node *);
extern void dlpar_free_cc_property(struct property *);
extern struct device_node *dlpar_configure_connector(u32);
extern int dlpar_attach_node(struct device_node *);
extern int dlpar_detach_node(struct device_node *);

#endif /* _PSERIES_PSERIES_H */

0 comments on commit 2064897

Please sign in to comment.