[POWERPC] Constify the of_device_id passed to of_platform_bus_probe

This will allow us to declare const all the statically declared arrrays
of these.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Stephen Rothwell 2007-12-21 15:21:51 +11:00 committed by Paul Mackerras
parent 92d1616ec0
commit b91bdd1517
2 changed files with 5 additions and 5 deletions

View file

@ -40,7 +40,7 @@
* a bus type in the list * a bus type in the list
*/ */
static struct of_device_id of_default_bus_ids[] = { static const struct of_device_id of_default_bus_ids[] = {
{ .type = "soc", }, { .type = "soc", },
{ .compatible = "soc", }, { .compatible = "soc", },
{ .type = "spider", }, { .type = "spider", },
@ -100,8 +100,8 @@ EXPORT_SYMBOL(of_platform_device_create);
* @matches: match table, NULL to use the default, OF_NO_DEEP_PROBE to * @matches: match table, NULL to use the default, OF_NO_DEEP_PROBE to
* disallow recursive creation of child busses * disallow recursive creation of child busses
*/ */
static int of_platform_bus_create(struct device_node *bus, static int of_platform_bus_create(const struct device_node *bus,
struct of_device_id *matches, const struct of_device_id *matches,
struct device *parent) struct device *parent)
{ {
struct device_node *child; struct device_node *child;
@ -137,7 +137,7 @@ static int of_platform_bus_create(struct device_node *bus,
*/ */
int of_platform_bus_probe(struct device_node *root, int of_platform_bus_probe(struct device_node *root,
struct of_device_id *matches, const struct of_device_id *matches,
struct device *parent) struct device *parent)
{ {
struct device_node *child; struct device_node *child;

View file

@ -32,7 +32,7 @@ extern struct of_device *of_platform_device_create(struct device_node *np,
#define OF_NO_DEEP_PROBE ((struct of_device_id *)-1) #define OF_NO_DEEP_PROBE ((struct of_device_id *)-1)
extern int of_platform_bus_probe(struct device_node *root, extern int of_platform_bus_probe(struct device_node *root,
struct of_device_id *matches, const struct of_device_id *matches,
struct device *parent); struct device *parent);
extern struct of_device *of_find_device_by_phandle(phandle ph); extern struct of_device *of_find_device_by_phandle(phandle ph);