diff options
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r-- | drivers/net/niu.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 30abb4e436f1..63e8e3893bd6 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -9115,7 +9115,7 @@ static int __devinit niu_n2_irq_init(struct niu *np, u8 *ldg_num_map) | |||
9115 | const u32 *int_prop; | 9115 | const u32 *int_prop; |
9116 | int i; | 9116 | int i; |
9117 | 9117 | ||
9118 | int_prop = of_get_property(op->node, "interrupts", NULL); | 9118 | int_prop = of_get_property(op->dev.of_node, "interrupts", NULL); |
9119 | if (!int_prop) | 9119 | if (!int_prop) |
9120 | return -ENODEV; | 9120 | return -ENODEV; |
9121 | 9121 | ||
@@ -9266,7 +9266,7 @@ static int __devinit niu_get_of_props(struct niu *np) | |||
9266 | int prop_len; | 9266 | int prop_len; |
9267 | 9267 | ||
9268 | if (np->parent->plat_type == PLAT_TYPE_NIU) | 9268 | if (np->parent->plat_type == PLAT_TYPE_NIU) |
9269 | dp = np->op->node; | 9269 | dp = np->op->dev.of_node; |
9270 | else | 9270 | else |
9271 | dp = pci_device_to_OF_node(np->pdev); | 9271 | dp = pci_device_to_OF_node(np->pdev); |
9272 | 9272 | ||
@@ -10083,10 +10083,10 @@ static int __devinit niu_of_probe(struct of_device *op, | |||
10083 | 10083 | ||
10084 | niu_driver_version(); | 10084 | niu_driver_version(); |
10085 | 10085 | ||
10086 | reg = of_get_property(op->node, "reg", NULL); | 10086 | reg = of_get_property(op->dev.of_node, "reg", NULL); |
10087 | if (!reg) { | 10087 | if (!reg) { |
10088 | dev_err(&op->dev, "%s: No 'reg' property, aborting\n", | 10088 | dev_err(&op->dev, "%s: No 'reg' property, aborting\n", |
10089 | op->node->full_name); | 10089 | op->dev.of_node->full_name); |
10090 | return -ENODEV; | 10090 | return -ENODEV; |
10091 | } | 10091 | } |
10092 | 10092 | ||
@@ -10099,7 +10099,7 @@ static int __devinit niu_of_probe(struct of_device *op, | |||
10099 | np = netdev_priv(dev); | 10099 | np = netdev_priv(dev); |
10100 | 10100 | ||
10101 | memset(&parent_id, 0, sizeof(parent_id)); | 10101 | memset(&parent_id, 0, sizeof(parent_id)); |
10102 | parent_id.of = of_get_parent(op->node); | 10102 | parent_id.of = of_get_parent(op->dev.of_node); |
10103 | 10103 | ||
10104 | np->parent = niu_get_parent(np, &parent_id, | 10104 | np->parent = niu_get_parent(np, &parent_id, |
10105 | PLAT_TYPE_NIU); | 10105 | PLAT_TYPE_NIU); |
@@ -10234,8 +10234,11 @@ static const struct of_device_id niu_match[] = { | |||
10234 | MODULE_DEVICE_TABLE(of, niu_match); | 10234 | MODULE_DEVICE_TABLE(of, niu_match); |
10235 | 10235 | ||
10236 | static struct of_platform_driver niu_of_driver = { | 10236 | static struct of_platform_driver niu_of_driver = { |
10237 | .name = "niu", | 10237 | .driver = { |
10238 | .match_table = niu_match, | 10238 | .name = "niu", |
10239 | .owner = THIS_MODULE, | ||
10240 | .of_match_table = niu_match, | ||
10241 | }, | ||
10239 | .probe = niu_of_probe, | 10242 | .probe = niu_of_probe, |
10240 | .remove = __devexit_p(niu_of_remove), | 10243 | .remove = __devexit_p(niu_of_remove), |
10241 | }; | 10244 | }; |