diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-02 04:06:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-03 22:38:45 -0400 |
commit | bc35383256563580dec30c547b90a0ce8a269bb0 (patch) | |
tree | 6dfec1bac82a1e2e851b3b832ca1adf0dc4a1adc /drivers/net/ethernet/ibm | |
parent | 1372a298ea4f2772655b2e69caa634f132f1d019 (diff) |
net: emac: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data
using platform_device instead of using dev_{get,set}_drvdata()
with &pdev->dev, so we can directly pass a struct platform_device.
This is a purely cosmetic change.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index 2d3b064d6924..6b5c7222342c 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c | |||
@@ -2312,7 +2312,7 @@ static int emac_check_deps(struct emac_instance *dev, | |||
2312 | if (deps[i].ofdev == NULL) | 2312 | if (deps[i].ofdev == NULL) |
2313 | continue; | 2313 | continue; |
2314 | if (deps[i].drvdata == NULL) | 2314 | if (deps[i].drvdata == NULL) |
2315 | deps[i].drvdata = dev_get_drvdata(&deps[i].ofdev->dev); | 2315 | deps[i].drvdata = platform_get_drvdata(deps[i].ofdev); |
2316 | if (deps[i].drvdata != NULL) | 2316 | if (deps[i].drvdata != NULL) |
2317 | there++; | 2317 | there++; |
2318 | } | 2318 | } |
@@ -2799,9 +2799,9 @@ static int emac_probe(struct platform_device *ofdev) | |||
2799 | /* display more info about what's missing ? */ | 2799 | /* display more info about what's missing ? */ |
2800 | goto err_reg_unmap; | 2800 | goto err_reg_unmap; |
2801 | } | 2801 | } |
2802 | dev->mal = dev_get_drvdata(&dev->mal_dev->dev); | 2802 | dev->mal = platform_get_drvdata(dev->mal_dev); |
2803 | if (dev->mdio_dev != NULL) | 2803 | if (dev->mdio_dev != NULL) |
2804 | dev->mdio_instance = dev_get_drvdata(&dev->mdio_dev->dev); | 2804 | dev->mdio_instance = platform_get_drvdata(dev->mdio_dev); |
2805 | 2805 | ||
2806 | /* Register with MAL */ | 2806 | /* Register with MAL */ |
2807 | dev->commac.ops = &emac_commac_ops; | 2807 | dev->commac.ops = &emac_commac_ops; |
@@ -2892,7 +2892,7 @@ static int emac_probe(struct platform_device *ofdev) | |||
2892 | * fully initialized | 2892 | * fully initialized |
2893 | */ | 2893 | */ |
2894 | wmb(); | 2894 | wmb(); |
2895 | dev_set_drvdata(&ofdev->dev, dev); | 2895 | platform_set_drvdata(ofdev, dev); |
2896 | 2896 | ||
2897 | /* There's a new kid in town ! Let's tell everybody */ | 2897 | /* There's a new kid in town ! Let's tell everybody */ |
2898 | wake_up_all(&emac_probe_wait); | 2898 | wake_up_all(&emac_probe_wait); |
@@ -2951,7 +2951,7 @@ static int emac_probe(struct platform_device *ofdev) | |||
2951 | 2951 | ||
2952 | static int emac_remove(struct platform_device *ofdev) | 2952 | static int emac_remove(struct platform_device *ofdev) |
2953 | { | 2953 | { |
2954 | struct emac_instance *dev = dev_get_drvdata(&ofdev->dev); | 2954 | struct emac_instance *dev = platform_get_drvdata(ofdev); |
2955 | 2955 | ||
2956 | DBG(dev, "remove" NL); | 2956 | DBG(dev, "remove" NL); |
2957 | 2957 | ||