diff options
Diffstat (limited to 'drivers/net/sunhme.c')
| -rw-r--r-- | drivers/net/sunhme.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index eec443f64079..bd0df1c14955 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c | |||
| @@ -1591,7 +1591,7 @@ static int happy_meal_init(struct happy_meal *hp) | |||
| 1591 | */ | 1591 | */ |
| 1592 | #ifdef CONFIG_SBUS | 1592 | #ifdef CONFIG_SBUS |
| 1593 | if ((hp->happy_flags & HFLAG_PCI) == 0) { | 1593 | if ((hp->happy_flags & HFLAG_PCI) == 0) { |
| 1594 | struct of_device *op = hp->happy_dev; | 1594 | struct platform_device *op = hp->happy_dev; |
| 1595 | if (sbus_can_dma_64bit()) { | 1595 | if (sbus_can_dma_64bit()) { |
| 1596 | sbus_set_sbus64(&op->dev, | 1596 | sbus_set_sbus64(&op->dev, |
| 1597 | hp->happy_bursts); | 1597 | hp->happy_bursts); |
| @@ -2480,7 +2480,7 @@ static void hme_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info | |||
| 2480 | #ifdef CONFIG_SBUS | 2480 | #ifdef CONFIG_SBUS |
| 2481 | else { | 2481 | else { |
| 2482 | const struct linux_prom_registers *regs; | 2482 | const struct linux_prom_registers *regs; |
| 2483 | struct of_device *op = hp->happy_dev; | 2483 | struct platform_device *op = hp->happy_dev; |
| 2484 | regs = of_get_property(op->dev.of_node, "regs", NULL); | 2484 | regs = of_get_property(op->dev.of_node, "regs", NULL); |
| 2485 | if (regs) | 2485 | if (regs) |
| 2486 | sprintf(info->bus_info, "SBUS:%d", | 2486 | sprintf(info->bus_info, "SBUS:%d", |
| @@ -2515,13 +2515,13 @@ static int hme_version_printed; | |||
| 2515 | * | 2515 | * |
| 2516 | * Return NULL on failure. | 2516 | * Return NULL on failure. |
| 2517 | */ | 2517 | */ |
| 2518 | static struct quattro * __devinit quattro_sbus_find(struct of_device *child) | 2518 | static struct quattro * __devinit quattro_sbus_find(struct platform_device *child) |
| 2519 | { | 2519 | { |
| 2520 | struct device *parent = child->dev.parent; | 2520 | struct device *parent = child->dev.parent; |
| 2521 | struct of_device *op; | 2521 | struct platform_device *op; |
| 2522 | struct quattro *qp; | 2522 | struct quattro *qp; |
| 2523 | 2523 | ||
| 2524 | op = to_of_device(parent); | 2524 | op = to_platform_device(parent); |
| 2525 | qp = dev_get_drvdata(&op->dev); | 2525 | qp = dev_get_drvdata(&op->dev); |
| 2526 | if (qp) | 2526 | if (qp) |
| 2527 | return qp; | 2527 | return qp; |
| @@ -2551,7 +2551,7 @@ static int __init quattro_sbus_register_irqs(void) | |||
| 2551 | struct quattro *qp; | 2551 | struct quattro *qp; |
| 2552 | 2552 | ||
| 2553 | for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { | 2553 | for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { |
| 2554 | struct of_device *op = qp->quattro_dev; | 2554 | struct platform_device *op = qp->quattro_dev; |
| 2555 | int err, qfe_slot, skip = 0; | 2555 | int err, qfe_slot, skip = 0; |
| 2556 | 2556 | ||
| 2557 | for (qfe_slot = 0; qfe_slot < 4; qfe_slot++) { | 2557 | for (qfe_slot = 0; qfe_slot < 4; qfe_slot++) { |
| @@ -2580,7 +2580,7 @@ static void quattro_sbus_free_irqs(void) | |||
| 2580 | struct quattro *qp; | 2580 | struct quattro *qp; |
| 2581 | 2581 | ||
| 2582 | for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { | 2582 | for (qp = qfe_sbus_list; qp != NULL; qp = qp->next) { |
| 2583 | struct of_device *op = qp->quattro_dev; | 2583 | struct platform_device *op = qp->quattro_dev; |
| 2584 | int qfe_slot, skip = 0; | 2584 | int qfe_slot, skip = 0; |
| 2585 | 2585 | ||
| 2586 | for (qfe_slot = 0; qfe_slot < 4; qfe_slot++) { | 2586 | for (qfe_slot = 0; qfe_slot < 4; qfe_slot++) { |
| @@ -2639,7 +2639,7 @@ static const struct net_device_ops hme_netdev_ops = { | |||
| 2639 | }; | 2639 | }; |
| 2640 | 2640 | ||
| 2641 | #ifdef CONFIG_SBUS | 2641 | #ifdef CONFIG_SBUS |
| 2642 | static int __devinit happy_meal_sbus_probe_one(struct of_device *op, int is_qfe) | 2642 | static int __devinit happy_meal_sbus_probe_one(struct platform_device *op, int is_qfe) |
| 2643 | { | 2643 | { |
| 2644 | struct device_node *dp = op->dev.of_node, *sbus_dp; | 2644 | struct device_node *dp = op->dev.of_node, *sbus_dp; |
| 2645 | struct quattro *qp = NULL; | 2645 | struct quattro *qp = NULL; |
| @@ -2648,7 +2648,7 @@ static int __devinit happy_meal_sbus_probe_one(struct of_device *op, int is_qfe) | |||
| 2648 | int i, qfe_slot = -1; | 2648 | int i, qfe_slot = -1; |
| 2649 | int err = -ENODEV; | 2649 | int err = -ENODEV; |
| 2650 | 2650 | ||
| 2651 | sbus_dp = to_of_device(op->dev.parent)->dev.of_node; | 2651 | sbus_dp = op->dev.parent->of_node; |
| 2652 | 2652 | ||
| 2653 | /* We can match PCI devices too, do not accept those here. */ | 2653 | /* We can match PCI devices too, do not accept those here. */ |
| 2654 | if (strcmp(sbus_dp->name, "sbus")) | 2654 | if (strcmp(sbus_dp->name, "sbus")) |
| @@ -3235,7 +3235,7 @@ static void happy_meal_pci_exit(void) | |||
| 3235 | #endif | 3235 | #endif |
| 3236 | 3236 | ||
| 3237 | #ifdef CONFIG_SBUS | 3237 | #ifdef CONFIG_SBUS |
| 3238 | static int __devinit hme_sbus_probe(struct of_device *op, const struct of_device_id *match) | 3238 | static int __devinit hme_sbus_probe(struct platform_device *op, const struct of_device_id *match) |
| 3239 | { | 3239 | { |
| 3240 | struct device_node *dp = op->dev.of_node; | 3240 | struct device_node *dp = op->dev.of_node; |
| 3241 | const char *model = of_get_property(dp, "model", NULL); | 3241 | const char *model = of_get_property(dp, "model", NULL); |
| @@ -3247,7 +3247,7 @@ static int __devinit hme_sbus_probe(struct of_device *op, const struct of_device | |||
| 3247 | return happy_meal_sbus_probe_one(op, is_qfe); | 3247 | return happy_meal_sbus_probe_one(op, is_qfe); |
| 3248 | } | 3248 | } |
| 3249 | 3249 | ||
| 3250 | static int __devexit hme_sbus_remove(struct of_device *op) | 3250 | static int __devexit hme_sbus_remove(struct platform_device *op) |
| 3251 | { | 3251 | { |
| 3252 | struct happy_meal *hp = dev_get_drvdata(&op->dev); | 3252 | struct happy_meal *hp = dev_get_drvdata(&op->dev); |
| 3253 | struct net_device *net_dev = hp->dev; | 3253 | struct net_device *net_dev = hp->dev; |
