of: Always use 'struct device.of_node' to get device node pointer.
The following structure elements duplicate the information in 'struct device.of_node' and so are being eliminated. This patch makes all readers of these elements use device.of_node instead. (struct of_device *)->node (struct dev_archdata *)->prom_node (sparc) (struct dev_archdata *)->of_node (powerpc & microblaze) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -1200,7 +1200,7 @@ static int __devinit sunsu_kbd_ms_init(struct uart_sunsu_port *up)
|
||||
return -ENODEV;
|
||||
|
||||
printk("%s: %s port at %llx, irq %u\n",
|
||||
to_of_device(up->port.dev)->node->full_name,
|
||||
to_of_device(up->port.dev)->dev.of_node->full_name,
|
||||
(up->su_type == SU_PORT_KBD) ? "Keyboard" : "Mouse",
|
||||
(unsigned long long) up->port.mapbase,
|
||||
up->port.irq);
|
||||
@@ -1352,7 +1352,7 @@ static int __init sunsu_console_setup(struct console *co, char *options)
|
||||
spin_lock_init(&port->lock);
|
||||
|
||||
/* Get firmware console settings. */
|
||||
sunserial_console_termios(co, to_of_device(port->dev)->node);
|
||||
sunserial_console_termios(co, to_of_device(port->dev)->dev.of_node);
|
||||
|
||||
memset(&termios, 0, sizeof(struct ktermios));
|
||||
termios.c_cflag = co->cflag;
|
||||
@@ -1409,7 +1409,7 @@ static enum su_type __devinit su_get_type(struct device_node *dp)
|
||||
static int __devinit su_probe(struct of_device *op, const struct of_device_id *match)
|
||||
{
|
||||
static int inst;
|
||||
struct device_node *dp = op->node;
|
||||
struct device_node *dp = op->dev.of_node;
|
||||
struct uart_sunsu_port *up;
|
||||
struct resource *rp;
|
||||
enum su_type type;
|
||||
|
Reference in New Issue
Block a user