auxio_64.c (18ffa418aead13c56515ac74cd26105102128aca) auxio_64.c (61c7a080a5a061c976988fd4b844dfb468dda255)
1/* auxio.c: Probing for the Sparc AUXIO register at boot time.
2 *
3 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
4 *
5 * Refactoring for unified NCR/PCIO support 2002 Eric Brower (ebrower@usa.net)
6 */
7
8#include <linux/module.h>

--- 90 unchanged lines hidden (view full) ---

99 },
100 {},
101};
102
103MODULE_DEVICE_TABLE(of, auxio_match);
104
105static int __devinit auxio_probe(struct of_device *dev, const struct of_device_id *match)
106{
1/* auxio.c: Probing for the Sparc AUXIO register at boot time.
2 *
3 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
4 *
5 * Refactoring for unified NCR/PCIO support 2002 Eric Brower (ebrower@usa.net)
6 */
7
8#include <linux/module.h>

--- 90 unchanged lines hidden (view full) ---

99 },
100 {},
101};
102
103MODULE_DEVICE_TABLE(of, auxio_match);
104
105static int __devinit auxio_probe(struct of_device *dev, const struct of_device_id *match)
106{
107 struct device_node *dp = dev->node;
107 struct device_node *dp = dev->dev.of_node;
108 unsigned long size;
109
110 if (!strcmp(dp->parent->name, "ebus")) {
111 auxio_devtype = AUXIO_TYPE_EBUS;
112 size = sizeof(u32);
113 } else if (!strcmp(dp->parent->name, "sbus")) {
114 auxio_devtype = AUXIO_TYPE_SBUS;
115 size = 1;

--- 36 unchanged lines hidden ---
108 unsigned long size;
109
110 if (!strcmp(dp->parent->name, "ebus")) {
111 auxio_devtype = AUXIO_TYPE_EBUS;
112 size = sizeof(u32);
113 } else if (!strcmp(dp->parent->name, "sbus")) {
114 auxio_devtype = AUXIO_TYPE_SBUS;
115 size = 1;

--- 36 unchanged lines hidden ---