Commit 01b2726d authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras
Browse files

[POWERPC] Rename get_property to of_get_property: partial drivers



This does drivers/machintosh and the hvc code.

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent a48141db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -575,7 +575,7 @@ static int hvc_find_vtys(void)
				(num_found >= VTTY_PORTS))
			break;

		vtermno = get_property(vty, "reg", NULL);
		vtermno = of_get_property(vty, "reg", NULL);
		if (!vtermno)
			continue;

+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ static int hvc_find_vtys(void)
		if (num_found >= MAX_NR_HVC_CONSOLES)
			break;

		vtermno = get_property(vty, "reg", NULL);
		vtermno = of_get_property(vty, "reg", NULL);
		if (!vtermno)
			continue;

+2 −2
Original line number Diff line number Diff line
@@ -1279,8 +1279,8 @@ static int __init hvsi_console_init(void)
		struct hvsi_struct *hp;
		const uint32_t *vtermno, *irq;

		vtermno = get_property(vty, "reg", NULL);
		irq = get_property(vty, "interrupts", NULL);
		vtermno = of_get_property(vty, "reg", NULL);
		irq = of_get_property(vty, "interrupts", NULL);
		if (!vtermno || !irq)
			continue;

+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
#endif
			MAX_NODE_NAME_SIZE, np->name);
	} else {
		reg = get_property(np, "reg", NULL);
		reg = of_get_property(np, "reg", NULL);
		sprintf(dev->ofdev.dev.bus_id, "%1d.%08x:%.*s",
			chip->lbus.index,
			reg ? *reg : 0, MAX_NODE_NAME_SIZE, np->name);
+2 −2
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ compatible_show (struct device *dev, struct device_attribute *attr, char *buf)
	int length = 0;

	of = &to_macio_device (dev)->ofdev;
	compat = get_property(of->node, "compatible", &cplen);
	compat = of_get_property(of->node, "compatible", &cplen);
	if (!compat) {
		*buf = '\0';
		return 0;
@@ -47,7 +47,7 @@ static ssize_t modalias_show (struct device *dev, struct device_attribute *attr,
	int length;

	of = &to_macio_device (dev)->ofdev;
	compat = get_property(of->node, "compatible", &cplen);
	compat = of_get_property(of->node, "compatible", &cplen);
	if (!compat) compat = "", cplen = 1;
	length = sprintf (buf, "of:N%sT%s", of->node->name, of->node->type);
	buf += length;
Loading