* [PATCH 01/31] net: ax88796: use dev_get_platdata()
@ 2013-08-30 4:44 Jingoo Han
2013-08-30 4:50 ` [PATCH 02/31] net: bfin_mac: " Jingoo Han
` (31 more replies)
0 siblings, 32 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:44 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/8390/ax88796.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c
index b7232a9..f92f001 100644
--- a/drivers/net/ethernet/8390/ax88796.c
+++ b/drivers/net/ethernet/8390/ax88796.c
@@ -840,7 +840,7 @@ static int ax_probe(struct platform_device *pdev)
ei_local = netdev_priv(dev);
ax = to_ax_dev(dev);
- ax->plat = pdev->dev.platform_data;
+ ax->plat = dev_get_platdata(&pdev->dev);
platform_set_drvdata(pdev, dev);
ei_local->rxcr_base = ax->plat->rcr_val;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 02/31] net: bfin_mac: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
@ 2013-08-30 4:50 ` Jingoo Han
2013-08-30 4:51 ` [PATCH 03/31] net: au1000_eth: " Jingoo Han
` (30 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:50 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, uclinux-dist-devel, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/adi/bfin_mac.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/adi/bfin_mac.c b/drivers/net/ethernet/adi/bfin_mac.c
index e904b38..e66684a 100644
--- a/drivers/net/ethernet/adi/bfin_mac.c
+++ b/drivers/net/ethernet/adi/bfin_mac.c
@@ -1647,12 +1647,12 @@ static int bfin_mac_probe(struct platform_device *pdev)
setup_mac_addr(ndev->dev_addr);
- if (!pdev->dev.platform_data) {
+ if (!dev_get_platdata(&pdev->dev)) {
dev_err(&pdev->dev, "Cannot get platform device bfin_mii_bus!\n");
rc = -ENODEV;
goto out_err_probe_mac;
}
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
lp->mii_bus = platform_get_drvdata(pd);
if (!lp->mii_bus) {
dev_err(&pdev->dev, "Cannot get mii_bus!\n");
@@ -1660,7 +1660,7 @@ static int bfin_mac_probe(struct platform_device *pdev)
goto out_err_probe_mac;
}
lp->mii_bus->priv = ndev;
- mii_bus_data = pd->dev.platform_data;
+ mii_bus_data = dev_get_platdata(&pd->dev);
rc = mii_probe(ndev, mii_bus_data->phy_mode);
if (rc) {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 03/31] net: au1000_eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
2013-08-30 4:50 ` [PATCH 02/31] net: bfin_mac: " Jingoo Han
@ 2013-08-30 4:51 ` Jingoo Han
2013-08-30 4:52 ` [PATCH 04/31] net: bcm63xx_enet: " Jingoo Han
` (29 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:51 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/amd/au1000_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/amd/au1000_eth.c b/drivers/net/ethernet/amd/au1000_eth.c
index ceb45bc..91d52b4 100644
--- a/drivers/net/ethernet/amd/au1000_eth.c
+++ b/drivers/net/ethernet/amd/au1000_eth.c
@@ -1131,7 +1131,7 @@ static int au1000_probe(struct platform_device *pdev)
writel(0, aup->enable);
aup->mac_enabled = 0;
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
if (!pd) {
dev_info(&pdev->dev, "no platform_data passed,"
" PHY search on MAC0\n");
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 04/31] net: bcm63xx_enet: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
2013-08-30 4:50 ` [PATCH 02/31] net: bfin_mac: " Jingoo Han
2013-08-30 4:51 ` [PATCH 03/31] net: au1000_eth: " Jingoo Han
@ 2013-08-30 4:52 ` Jingoo Han
2013-08-30 4:54 ` [PATCH 07/31] net: ep93xx_eth: " Jingoo Han
` (28 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:52 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/broadcom/bcm63xx_enet.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bcm63xx_enet.c b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
index 190219e..1985ee3 100644
--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c
+++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c
@@ -1800,7 +1800,7 @@ static int bcm_enet_probe(struct platform_device *pdev)
priv->rx_ring_size = BCMENET_DEF_RX_DESC;
priv->tx_ring_size = BCMENET_DEF_TX_DESC;
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
if (pd) {
memcpy(dev->dev_addr, pd->mac_addr, ETH_ALEN);
priv->has_phy = pd->has_phy;
@@ -1964,7 +1964,7 @@ static int bcm_enet_remove(struct platform_device *pdev)
} else {
struct bcm63xx_enet_platform_data *pd;
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
if (pd && pd->mii_config)
pd->mii_config(dev, 0, bcm_enet_mdio_read_mii,
bcm_enet_mdio_write_mii);
@@ -2742,7 +2742,7 @@ static int bcm_enetsw_probe(struct platform_device *pdev)
priv->tx_ring_size = BCMENET_DEF_TX_DESC;
priv->dma_maxburst = BCMENETSW_DMA_MAXBURST;
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
if (pd) {
memcpy(dev->dev_addr, pd->mac_addr, ETH_ALEN);
memcpy(priv->used_ports, pd->used_ports,
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 07/31] net: ep93xx_eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (2 preceding siblings ...)
2013-08-30 4:52 ` [PATCH 04/31] net: bcm63xx_enet: " Jingoo Han
@ 2013-08-30 4:54 ` Jingoo Han
2013-08-30 4:55 ` [PATCH 08/31] net: dm9000: " Jingoo Han
` (27 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:54 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Hartley Sweeten', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/cirrus/ep93xx_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cirrus/ep93xx_eth.c b/drivers/net/ethernet/cirrus/ep93xx_eth.c
index e3d4ec8..ec88de4 100644
--- a/drivers/net/ethernet/cirrus/ep93xx_eth.c
+++ b/drivers/net/ethernet/cirrus/ep93xx_eth.c
@@ -814,7 +814,7 @@ static int ep93xx_eth_probe(struct platform_device *pdev)
if (pdev == NULL)
return -ENODEV;
- data = pdev->dev.platform_data;
+ data = dev_get_platdata(&pdev->dev);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
irq = platform_get_irq(pdev, 0);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 08/31] net: dm9000: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (3 preceding siblings ...)
2013-08-30 4:54 ` [PATCH 07/31] net: ep93xx_eth: " Jingoo Han
@ 2013-08-30 4:55 ` Jingoo Han
2013-08-30 4:55 ` [PATCH 09/31] net: ethoc: " Jingoo Han
` (26 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:55 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/davicom/dm9000.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c
index a13b312..5f5896e 100644
--- a/drivers/net/ethernet/davicom/dm9000.c
+++ b/drivers/net/ethernet/davicom/dm9000.c
@@ -1384,7 +1384,7 @@ static struct dm9000_plat_data *dm9000_parse_dt(struct device *dev)
static int
dm9000_probe(struct platform_device *pdev)
{
- struct dm9000_plat_data *pdata = pdev->dev.platform_data;
+ struct dm9000_plat_data *pdata = dev_get_platdata(&pdev->dev);
struct board_info *db; /* Point a board information structure */
struct net_device *ndev;
const unsigned char *mac_src;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 09/31] net: ethoc: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (4 preceding siblings ...)
2013-08-30 4:55 ` [PATCH 08/31] net: dm9000: " Jingoo Han
@ 2013-08-30 4:55 ` Jingoo Han
2013-08-30 4:56 ` [PATCH 10/31] net: fec: " Jingoo Han
` (25 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:55 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/ethoc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/ethoc.c b/drivers/net/ethernet/ethoc.c
index cf579fb..4de8cfd 100644
--- a/drivers/net/ethernet/ethoc.c
+++ b/drivers/net/ethernet/ethoc.c
@@ -1030,8 +1030,8 @@ static int ethoc_probe(struct platform_device *pdev)
}
/* Allow the platform setup code to pass in a MAC address. */
- if (pdev->dev.platform_data) {
- struct ethoc_platform_data *pdata = pdev->dev.platform_data;
+ if (dev_get_platdata(&pdev->dev)) {
+ struct ethoc_platform_data *pdata = dev_get_platdata(&pdev->dev);
memcpy(netdev->dev_addr, pdata->hwaddr, IFHWADDRLEN);
priv->phy_id = pdata->phy_id;
} else {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 10/31] net: fec: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (5 preceding siblings ...)
2013-08-30 4:55 ` [PATCH 09/31] net: ethoc: " Jingoo Han
@ 2013-08-30 4:56 ` Jingoo Han
2013-08-30 5:23 ` Duan Fugang-B38611
2013-08-30 4:57 ` [PATCH 11/31] net: mv643xx_eth: " Jingoo Han
` (24 subsequent siblings)
31 siblings, 1 reply; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:56 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/freescale/fec_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index fdf9307..7b81195 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -1060,7 +1060,7 @@ static int fec_enet_rx_napi(struct napi_struct *napi, int budget)
static void fec_get_mac(struct net_device *ndev)
{
struct fec_enet_private *fep = netdev_priv(ndev);
- struct fec_platform_data *pdata = fep->pdev->dev.platform_data;
+ struct fec_platform_data *pdata = dev_get_platdata(&fep->pdev->dev);
unsigned char *iap, tmpaddr[ETH_ALEN];
/*
@@ -2089,7 +2089,7 @@ fec_probe(struct platform_device *pdev)
ret = of_get_phy_mode(pdev->dev.of_node);
if (ret < 0) {
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (pdata)
fep->phy_interface = pdata->phy;
else
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 11/31] net: mv643xx_eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (6 preceding siblings ...)
2013-08-30 4:56 ` [PATCH 10/31] net: fec: " Jingoo Han
@ 2013-08-30 4:57 ` Jingoo Han
2013-08-30 4:58 ` [PATCH 12/31] net: pxa168_eth: " Jingoo Han
` (23 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:57 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Lennert Buytenhek', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/marvell/mv643xx_eth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
index c35db73..7fb5677 100644
--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
@@ -2641,7 +2641,7 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev)
ret = mv643xx_eth_shared_of_probe(pdev);
if (ret)
return ret;
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
msp->tx_csum_limit = (pd != NULL && pd->tx_csum_limit) ?
pd->tx_csum_limit : 9 * 1024;
@@ -2833,7 +2833,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev)
struct resource *res;
int err;
- pd = pdev->dev.platform_data;
+ pd = dev_get_platdata(&pdev->dev);
if (pd == NULL) {
dev_err(&pdev->dev, "no mv643xx_eth_platform_data\n");
return -ENODEV;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 12/31] net: pxa168_eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (7 preceding siblings ...)
2013-08-30 4:57 ` [PATCH 11/31] net: mv643xx_eth: " Jingoo Han
@ 2013-08-30 4:58 ` Jingoo Han
2013-08-30 4:58 ` [PATCH 13/31] net: ks8842: " Jingoo Han
` (22 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:58 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/marvell/pxa168_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c
index db48147..23a3f57 100644
--- a/drivers/net/ethernet/marvell/pxa168_eth.c
+++ b/drivers/net/ethernet/marvell/pxa168_eth.c
@@ -1517,7 +1517,7 @@ static int pxa168_eth_probe(struct platform_device *pdev)
printk(KERN_INFO "%s:Using random mac address\n", DRIVER_NAME);
eth_hw_addr_random(dev);
- pep->pd = pdev->dev.platform_data;
+ pep->pd = dev_get_platdata(&pdev->dev);
pep->rx_ring_size = NUM_RX_DESCS;
if (pep->pd->rx_queue_size)
pep->rx_ring_size = pep->pd->rx_queue_size;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 13/31] net: ks8842: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (8 preceding siblings ...)
2013-08-30 4:58 ` [PATCH 12/31] net: pxa168_eth: " Jingoo Han
@ 2013-08-30 4:58 ` Jingoo Han
2013-08-30 4:59 ` [PATCH 14/31] net: ks8851-ml: " Jingoo Han
` (21 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:58 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/micrel/ks8842.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c
index 94b3bd6..0951f7a 100644
--- a/drivers/net/ethernet/micrel/ks8842.c
+++ b/drivers/net/ethernet/micrel/ks8842.c
@@ -1148,7 +1148,7 @@ static int ks8842_probe(struct platform_device *pdev)
struct resource *iomem;
struct net_device *netdev;
struct ks8842_adapter *adapter;
- struct ks8842_platform_data *pdata = pdev->dev.platform_data;
+ struct ks8842_platform_data *pdata = dev_get_platdata(&pdev->dev);
u16 id;
unsigned i;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 14/31] net: ks8851-ml: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (9 preceding siblings ...)
2013-08-30 4:58 ` [PATCH 13/31] net: ks8842: " Jingoo Han
@ 2013-08-30 4:59 ` Jingoo Han
2013-08-30 4:59 ` [PATCH 15/31] net: netx-eth: " Jingoo Han
` (20 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:59 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/micrel/ks8851_mll.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/micrel/ks8851_mll.c b/drivers/net/ethernet/micrel/ks8851_mll.c
index 9f3f5db..0fba153 100644
--- a/drivers/net/ethernet/micrel/ks8851_mll.c
+++ b/drivers/net/ethernet/micrel/ks8851_mll.c
@@ -1636,7 +1636,7 @@ static int ks8851_probe(struct platform_device *pdev)
} else {
struct ks8851_mll_platform_data *pdata;
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (!pdata) {
netdev_err(netdev, "No platform data\n");
err = -ENODEV;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 15/31] net: netx-eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (10 preceding siblings ...)
2013-08-30 4:59 ` [PATCH 14/31] net: ks8851-ml: " Jingoo Han
@ 2013-08-30 4:59 ` Jingoo Han
2013-08-31 18:17 ` Sergei Shtylyov
2013-08-30 5:00 ` [PATCH 16/31] net: sh_eth: " Jingoo Han
` (19 subsequent siblings)
31 siblings, 1 reply; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 4:59 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/netx-eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/netx-eth.c b/drivers/net/ethernet/netx-eth.c
index dc2c6f5..235fd51 100644
--- a/drivers/net/ethernet/netx-eth.c
+++ b/drivers/net/ethernet/netx-eth.c
@@ -390,7 +390,7 @@ static int netx_eth_drv_probe(struct platform_device *pdev)
priv = netdev_priv(ndev);
- pdata = (struct netxeth_platform_data *)pdev->dev.platform_data;
+ pdata = (struct netxeth_platform_data *)dev_get_platdata(&pdev->dev);
priv->xc = request_xc(pdata->xcno, &pdev->dev);
if (!priv->xc) {
dev_err(&pdev->dev, "unable to request xc engine\n");
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 16/31] net: sh_eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (11 preceding siblings ...)
2013-08-30 4:59 ` [PATCH 15/31] net: netx-eth: " Jingoo Han
@ 2013-08-30 5:00 ` Jingoo Han
2013-08-30 5:00 ` [PATCH 17/31] net: seeq: " Jingoo Han
` (18 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:00 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/renesas/sh_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
index c357076..2aa7676 100644
--- a/drivers/net/ethernet/renesas/sh_eth.c
+++ b/drivers/net/ethernet/renesas/sh_eth.c
@@ -2606,7 +2606,7 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
struct resource *res;
struct net_device *ndev = NULL;
struct sh_eth_private *mdp = NULL;
- struct sh_eth_plat_data *pd = pdev->dev.platform_data;
+ struct sh_eth_plat_data *pd = dev_get_platdata(&pdev->dev);
const struct platform_device_id *id = platform_get_device_id(pdev);
/* get base addr */
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 17/31] net: seeq: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (12 preceding siblings ...)
2013-08-30 5:00 ` [PATCH 16/31] net: sh_eth: " Jingoo Han
@ 2013-08-30 5:00 ` Jingoo Han
2013-08-30 5:01 ` [PATCH 18/31] net: smc91x: " Jingoo Han
` (17 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:00 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/seeq/sgiseeq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c
index 856e523..c765718 100644
--- a/drivers/net/ethernet/seeq/sgiseeq.c
+++ b/drivers/net/ethernet/seeq/sgiseeq.c
@@ -721,7 +721,7 @@ static const struct net_device_ops sgiseeq_netdev_ops = {
static int sgiseeq_probe(struct platform_device *pdev)
{
- struct sgiseeq_platform_data *pd = pdev->dev.platform_data;
+ struct sgiseeq_platform_data *pd = dev_get_platdata(&pdev->dev);
struct hpc3_regs *hpcregs = pd->hpc;
struct sgiseeq_init_block *sr;
unsigned int irq = pd->irq;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 18/31] net: smc91x: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (13 preceding siblings ...)
2013-08-30 5:00 ` [PATCH 17/31] net: seeq: " Jingoo Han
@ 2013-08-30 5:01 ` Jingoo Han
2013-08-30 5:02 ` [PATCH 19/31] net: smc911x: " Jingoo Han
` (16 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:01 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Nicolas Pitre', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/smsc/smc91x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c
index cde13be..73be7f3 100644
--- a/drivers/net/ethernet/smsc/smc91x.c
+++ b/drivers/net/ethernet/smsc/smc91x.c
@@ -2202,7 +2202,7 @@ static void smc_release_datacs(struct platform_device *pdev, struct net_device *
*/
static int smc_drv_probe(struct platform_device *pdev)
{
- struct smc91x_platdata *pd = pdev->dev.platform_data;
+ struct smc91x_platdata *pd = dev_get_platdata(&pdev->dev);
struct smc_local *lp;
struct net_device *ndev;
struct resource *res, *ires;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 19/31] net: smc911x: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (14 preceding siblings ...)
2013-08-30 5:01 ` [PATCH 18/31] net: smc91x: " Jingoo Han
@ 2013-08-30 5:02 ` Jingoo Han
2013-08-30 5:02 ` [PATCH 20/31] net: smsc911x: " Jingoo Han
` (15 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:02 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/smsc/smc911x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/smsc/smc911x.c b/drivers/net/ethernet/smsc/smc911x.c
index 345558f..afe01c4 100644
--- a/drivers/net/ethernet/smsc/smc911x.c
+++ b/drivers/net/ethernet/smsc/smc911x.c
@@ -2067,7 +2067,7 @@ static int smc911x_drv_probe(struct platform_device *pdev)
lp->netdev = ndev;
#ifdef SMC_DYNAMIC_BUS_CONFIG
{
- struct smc911x_platdata *pd = pdev->dev.platform_data;
+ struct smc911x_platdata *pd = dev_get_platdata(&pdev->dev);
if (!pd) {
ret = -EINVAL;
goto release_both;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 20/31] net: smsc911x: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (15 preceding siblings ...)
2013-08-30 5:02 ` [PATCH 19/31] net: smc911x: " Jingoo Han
@ 2013-08-30 5:02 ` Jingoo Han
2013-08-30 5:04 ` [PATCH 22/31] net: niu: " Jingoo Han
` (14 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:02 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Steve Glendinning', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/smsc/smsc911x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c
index a141921..5fdbc26 100644
--- a/drivers/net/ethernet/smsc/smsc911x.c
+++ b/drivers/net/ethernet/smsc/smsc911x.c
@@ -2374,7 +2374,7 @@ static int smsc911x_drv_probe(struct platform_device *pdev)
struct device_node *np = pdev->dev.of_node;
struct net_device *dev;
struct smsc911x_data *pdata;
- struct smsc911x_platform_config *config = pdev->dev.platform_data;
+ struct smsc911x_platform_config *config = dev_get_platdata(&pdev->dev);
struct resource *res, *irq_res;
unsigned int intcfg = 0;
int res_size, irq_flags;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 22/31] net: niu: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (16 preceding siblings ...)
2013-08-30 5:02 ` [PATCH 20/31] net: smsc911x: " Jingoo Han
@ 2013-08-30 5:04 ` Jingoo Han
2013-08-30 5:05 ` [PATCH 23/31] net: cpmac: " Jingoo Han
` (13 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:04 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/sun/niu.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c
index 52b2adf..f28460c 100644
--- a/drivers/net/ethernet/sun/niu.c
+++ b/drivers/net/ethernet/sun/niu.c
@@ -9360,7 +9360,7 @@ static ssize_t show_port_phy(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct platform_device *plat_dev = to_platform_device(dev);
- struct niu_parent *p = plat_dev->dev.platform_data;
+ struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
u32 port_phy = p->port_phy;
char *orig_buf = buf;
int i;
@@ -9390,7 +9390,7 @@ static ssize_t show_plat_type(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct platform_device *plat_dev = to_platform_device(dev);
- struct niu_parent *p = plat_dev->dev.platform_data;
+ struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
const char *type_str;
switch (p->plat_type) {
@@ -9419,7 +9419,7 @@ static ssize_t __show_chan_per_port(struct device *dev,
int rx)
{
struct platform_device *plat_dev = to_platform_device(dev);
- struct niu_parent *p = plat_dev->dev.platform_data;
+ struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
char *orig_buf = buf;
u8 *arr;
int i;
@@ -9452,7 +9452,7 @@ static ssize_t show_num_ports(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct platform_device *plat_dev = to_platform_device(dev);
- struct niu_parent *p = plat_dev->dev.platform_data;
+ struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
return sprintf(buf, "%d\n", p->num_ports);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 23/31] net: cpmac: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (17 preceding siblings ...)
2013-08-30 5:04 ` [PATCH 22/31] net: niu: " Jingoo Han
@ 2013-08-30 5:05 ` Jingoo Han
2013-08-30 5:05 ` [PATCH 24/31] net: davinci_emac: " Jingoo Han
` (12 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:05 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Florian Fainelli', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/ti/cpmac.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/ti/cpmac.c b/drivers/net/ethernet/ti/cpmac.c
index 31bbbca..2dc16b6 100644
--- a/drivers/net/ethernet/ti/cpmac.c
+++ b/drivers/net/ethernet/ti/cpmac.c
@@ -636,7 +636,7 @@ static void cpmac_hw_stop(struct net_device *dev)
{
int i;
struct cpmac_priv *priv = netdev_priv(dev);
- struct plat_cpmac_data *pdata = priv->pdev->dev.platform_data;
+ struct plat_cpmac_data *pdata = dev_get_platdata(&priv->pdev->dev);
ar7_device_reset(pdata->reset_bit);
cpmac_write(priv->regs, CPMAC_RX_CONTROL,
@@ -659,7 +659,7 @@ static void cpmac_hw_start(struct net_device *dev)
{
int i;
struct cpmac_priv *priv = netdev_priv(dev);
- struct plat_cpmac_data *pdata = priv->pdev->dev.platform_data;
+ struct plat_cpmac_data *pdata = dev_get_platdata(&priv->pdev->dev);
ar7_device_reset(pdata->reset_bit);
for (i = 0; i < 8; i++) {
@@ -1118,7 +1118,7 @@ static int cpmac_probe(struct platform_device *pdev)
struct net_device *dev;
struct plat_cpmac_data *pdata;
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (external_switch || dumb_switch) {
strncpy(mdio_bus_id, "fixed-0", MII_BUS_ID_SIZE); /* fixed phys bus */
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 24/31] net: davinci_emac: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (18 preceding siblings ...)
2013-08-30 5:05 ` [PATCH 23/31] net: cpmac: " Jingoo Han
@ 2013-08-30 5:05 ` Jingoo Han
2013-08-30 5:17 ` Mugunthan V N
2013-08-30 5:06 ` [PATCH 25/31] net: davinci_mdio: " Jingoo Han
` (11 subsequent siblings)
31 siblings, 1 reply; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:05 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
>From 829c7a4846b68ee49beb465db2caa1127cca38cc Mon Sep 17 00:00:00 2001
From: Jingoo Han <jg1.han@samsung.com>
Date: Fri, 30 Aug 2013 12:29:57 +0900
Subject: [PATCH 24/31] net: davinci_emac: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/ti/davinci_emac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index 1a222bce..67df09e 100644
--- a/drivers/net/ethernet/ti/davinci_emac.c
+++ b/drivers/net/ethernet/ti/davinci_emac.c
@@ -1761,7 +1761,7 @@ davinci_emac_of_get_pdata(struct platform_device *pdev, struct emac_priv *priv)
const u8 *mac_addr;
if (!IS_ENABLED(CONFIG_OF) || !pdev->dev.of_node)
- return pdev->dev.platform_data;
+ return dev_get_platdata(&pdev->dev);
pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
if (!pdata)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 25/31] net: davinci_mdio: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (19 preceding siblings ...)
2013-08-30 5:05 ` [PATCH 24/31] net: davinci_emac: " Jingoo Han
@ 2013-08-30 5:06 ` Jingoo Han
2013-08-30 5:18 ` Mugunthan V N
2013-08-30 5:06 ` [PATCH 26/31] net: tsi108: " Jingoo Han
` (10 subsequent siblings)
31 siblings, 1 reply; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:06 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/ti/davinci_mdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index 7f85143..4ec9265 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -314,7 +314,7 @@ static int davinci_mdio_probe_dt(struct mdio_platform_data *data,
static int davinci_mdio_probe(struct platform_device *pdev)
{
- struct mdio_platform_data *pdata = pdev->dev.platform_data;
+ struct mdio_platform_data *pdata = dev_get_platdata(&pdev->dev);
struct device *dev = &pdev->dev;
struct davinci_mdio_data *data;
struct resource *res;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 26/31] net: tsi108: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (20 preceding siblings ...)
2013-08-30 5:06 ` [PATCH 25/31] net: davinci_mdio: " Jingoo Han
@ 2013-08-30 5:06 ` Jingoo Han
2013-08-30 5:07 ` [PATCH 27/31] net: w5300: " Jingoo Han
` (9 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:06 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/tundra/tsi108_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/tundra/tsi108_eth.c b/drivers/net/ethernet/tundra/tsi108_eth.c
index 01bdc6c..922e1de 100644
--- a/drivers/net/ethernet/tundra/tsi108_eth.c
+++ b/drivers/net/ethernet/tundra/tsi108_eth.c
@@ -1558,7 +1558,7 @@ tsi108_init_one(struct platform_device *pdev)
hw_info *einfo;
int err = 0;
- einfo = pdev->dev.platform_data;
+ einfo = dev_get_platdata(&pdev->dev);
if (NULL == einfo) {
printk(KERN_ERR "tsi-eth %d: Missing additional data!\n",
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 27/31] net: w5300: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (21 preceding siblings ...)
2013-08-30 5:06 ` [PATCH 26/31] net: tsi108: " Jingoo Han
@ 2013-08-30 5:07 ` Jingoo Han
2013-08-30 5:07 ` [PATCH 28/31] net: w5100: " Jingoo Han
` (8 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:07 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/wiznet/w5300.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/wiznet/w5300.c b/drivers/net/ethernet/wiznet/w5300.c
index e928845..71c27b3 100644
--- a/drivers/net/ethernet/wiznet/w5300.c
+++ b/drivers/net/ethernet/wiznet/w5300.c
@@ -542,7 +542,7 @@ static const struct net_device_ops w5300_netdev_ops = {
static int w5300_hw_probe(struct platform_device *pdev)
{
- struct wiznet_platform_data *data = pdev->dev.platform_data;
+ struct wiznet_platform_data *data = dev_get_platdata(&pdev->dev);
struct net_device *ndev = platform_get_drvdata(pdev);
struct w5300_priv *priv = netdev_priv(ndev);
const char *name = netdev_name(ndev);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 28/31] net: w5100: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (22 preceding siblings ...)
2013-08-30 5:07 ` [PATCH 27/31] net: w5300: " Jingoo Han
@ 2013-08-30 5:07 ` Jingoo Han
2013-08-30 5:08 ` [PATCH 29/31] net: ixp4xx_eth: " Jingoo Han
` (7 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:07 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/wiznet/w5100.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/wiznet/w5100.c b/drivers/net/ethernet/wiznet/w5100.c
index 30fed08..0df36c6 100644
--- a/drivers/net/ethernet/wiznet/w5100.c
+++ b/drivers/net/ethernet/wiznet/w5100.c
@@ -622,7 +622,7 @@ static const struct net_device_ops w5100_netdev_ops = {
static int w5100_hw_probe(struct platform_device *pdev)
{
- struct wiznet_platform_data *data = pdev->dev.platform_data;
+ struct wiznet_platform_data *data = dev_get_platdata(&pdev->dev);
struct net_device *ndev = platform_get_drvdata(pdev);
struct w5100_priv *priv = netdev_priv(ndev);
const char *name = netdev_name(ndev);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 29/31] net: ixp4xx_eth: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (23 preceding siblings ...)
2013-08-30 5:07 ` [PATCH 28/31] net: w5100: " Jingoo Han
@ 2013-08-30 5:08 ` Jingoo Han
2013-08-30 5:08 ` [PATCH 30/31] net: mdio-gpio: " Jingoo Han
` (6 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:08 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Krzysztof Halasa', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/xscale/ixp4xx_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet/xscale/ixp4xx_eth.c
index 3d689fc..e78802e 100644
--- a/drivers/net/ethernet/xscale/ixp4xx_eth.c
+++ b/drivers/net/ethernet/xscale/ixp4xx_eth.c
@@ -1384,7 +1384,7 @@ static int eth_init_one(struct platform_device *pdev)
{
struct port *port;
struct net_device *dev;
- struct eth_plat_info *plat = pdev->dev.platform_data;
+ struct eth_plat_info *plat = dev_get_platdata(&pdev->dev);
u32 regs_phys;
char phy_id[MII_BUS_ID_SIZE + 3];
int err;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 30/31] net: mdio-gpio: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (24 preceding siblings ...)
2013-08-30 5:08 ` [PATCH 29/31] net: ixp4xx_eth: " Jingoo Han
@ 2013-08-30 5:08 ` Jingoo Han
2013-08-30 5:09 ` [PATCH 31/31] net: mdio-mux-gpio: " Jingoo Han
` (5 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:08 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/phy/mdio-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/mdio-gpio.c b/drivers/net/phy/mdio-gpio.c
index a47f923..8004acb 100644
--- a/drivers/net/phy/mdio-gpio.c
+++ b/drivers/net/phy/mdio-gpio.c
@@ -191,7 +191,7 @@ static int mdio_gpio_probe(struct platform_device *pdev)
pdata = mdio_gpio_of_get_data(pdev);
bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio");
} else {
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
bus_id = pdev->id;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 31/31] net: mdio-mux-gpio: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (25 preceding siblings ...)
2013-08-30 5:08 ` [PATCH 30/31] net: mdio-gpio: " Jingoo Han
@ 2013-08-30 5:09 ` Jingoo Han
2013-08-30 5:11 ` [PATCH 05/31] net: at91_ether: " Jingoo Han
` (4 subsequent siblings)
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:09 UTC (permalink / raw)
To: 'David S. Miller'; +Cc: netdev, 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/phy/mdio-mux-gpio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/mdio-mux-gpio.c b/drivers/net/phy/mdio-mux-gpio.c
index e91d7d7..d2dd9e4 100644
--- a/drivers/net/phy/mdio-mux-gpio.c
+++ b/drivers/net/phy/mdio-mux-gpio.c
@@ -106,7 +106,7 @@ err:
static int mdio_mux_gpio_remove(struct platform_device *pdev)
{
- struct mdio_mux_gpio_state *s = pdev->dev.platform_data;
+ struct mdio_mux_gpio_state *s = dev_get_platdata(&pdev->dev);
mdio_mux_uninit(s->mux_handle);
return 0;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 05/31] net: at91_ether: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (26 preceding siblings ...)
2013-08-30 5:09 ` [PATCH 31/31] net: mdio-mux-gpio: " Jingoo Han
@ 2013-08-30 5:11 ` Jingoo Han
2013-08-30 7:53 ` Nicolas Ferre
2013-08-30 5:12 ` [PATCH 06/31] net: macb: " Jingoo Han
` (3 subsequent siblings)
31 siblings, 1 reply; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:11 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Nicolas Ferre', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/cadence/at91_ether.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c
index bb5d63f..ce75de9 100644
--- a/drivers/net/ethernet/cadence/at91_ether.c
+++ b/drivers/net/ethernet/cadence/at91_ether.c
@@ -304,7 +304,7 @@ MODULE_DEVICE_TABLE(of, at91ether_dt_ids);
/* Detect MAC & PHY and perform ethernet interface initialization */
static int __init at91ether_probe(struct platform_device *pdev)
{
- struct macb_platform_data *board_data = pdev->dev.platform_data;
+ struct macb_platform_data *board_data = dev_get_platdata(&pdev->dev);
struct resource *regs;
struct net_device *dev;
struct phy_device *phydev;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 06/31] net: macb: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (27 preceding siblings ...)
2013-08-30 5:11 ` [PATCH 05/31] net: at91_ether: " Jingoo Han
@ 2013-08-30 5:12 ` Jingoo Han
2013-08-30 7:54 ` Nicolas Ferre
2013-08-30 5:13 ` [PATCH 21/31] net: stmmac: " Jingoo Han
` (2 subsequent siblings)
31 siblings, 1 reply; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:12 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Nicolas Ferre', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/cadence/macb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
index fe06ab0..20f94d1 100644
--- a/drivers/net/ethernet/cadence/macb.c
+++ b/drivers/net/ethernet/cadence/macb.c
@@ -125,7 +125,7 @@ void macb_get_hwaddr(struct macb *bp)
u8 addr[6];
int i;
- pdata = bp->pdev->dev.platform_data;
+ pdata = dev_get_platdata(&bp->pdev->dev);
/* Check all 4 address register for vaild address */
for (i = 0; i < 4; i++) {
@@ -335,7 +335,7 @@ int macb_mii_init(struct macb *bp)
bp->pdev->name, bp->pdev->id);
bp->mii_bus->priv = bp;
bp->mii_bus->parent = &bp->dev->dev;
- pdata = bp->pdev->dev.platform_data;
+ pdata = dev_get_platdata(&bp->pdev->dev);
bp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
if (!bp->mii_bus->irq) {
@@ -1851,7 +1851,7 @@ static int __init macb_probe(struct platform_device *pdev)
err = of_get_phy_mode(pdev->dev.of_node);
if (err < 0) {
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (pdata && pdata->is_rmii)
bp->phy_interface = PHY_INTERFACE_MODE_RMII;
else
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* [PATCH 21/31] net: stmmac: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (28 preceding siblings ...)
2013-08-30 5:12 ` [PATCH 06/31] net: macb: " Jingoo Han
@ 2013-08-30 5:13 ` Jingoo Han
2013-08-30 21:45 ` [PATCH 01/31] net: ax88796: " David Miller
2013-08-31 18:14 ` Sergei Shtylyov
31 siblings, 0 replies; 39+ messages in thread
From: Jingoo Han @ 2013-08-30 5:13 UTC (permalink / raw)
To: 'David S. Miller'
Cc: netdev, 'Giuseppe Cavallaro', 'Jingoo Han'
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change
to make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
index b34088d..f17dfff 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
@@ -117,7 +117,7 @@ static int stmmac_pltfr_probe(struct platform_device *pdev)
if (IS_ERR(addr))
return PTR_ERR(addr);
- plat_dat = pdev->dev.platform_data;
+ plat_dat = dev_get_platdata(&pdev->dev);
if (pdev->dev.of_node) {
if (!plat_dat)
plat_dat = devm_kzalloc(&pdev->dev,
--
1.7.10.4
^ permalink raw reply related [flat|nested] 39+ messages in thread
* Re: [PATCH 24/31] net: davinci_emac: use dev_get_platdata()
2013-08-30 5:05 ` [PATCH 24/31] net: davinci_emac: " Jingoo Han
@ 2013-08-30 5:17 ` Mugunthan V N
0 siblings, 0 replies; 39+ messages in thread
From: Mugunthan V N @ 2013-08-30 5:17 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'David S. Miller', netdev
On Friday 30 August 2013 10:35 AM, Jingoo Han wrote:
> From 829c7a4846b68ee49beb465db2caa1127cca38cc Mon Sep 17 00:00:00 2001
> From: Jingoo Han<jg1.han@samsung.com>
> Date: Fri, 30 Aug 2013 12:29:57 +0900
> Subject: [PATCH 24/31] net: davinci_emac: use dev_get_platdata()
>
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change
> to make the code simpler and enhance the readability.
>
> Signed-off-by: Jingoo Han<jg1.han@samsung.com>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Regards
Mugunthan V N
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH 25/31] net: davinci_mdio: use dev_get_platdata()
2013-08-30 5:06 ` [PATCH 25/31] net: davinci_mdio: " Jingoo Han
@ 2013-08-30 5:18 ` Mugunthan V N
0 siblings, 0 replies; 39+ messages in thread
From: Mugunthan V N @ 2013-08-30 5:18 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'David S. Miller', netdev
On Friday 30 August 2013 10:36 AM, Jingoo Han wrote:
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change
> to make the code simpler and enhance the readability.
>
> Signed-off-by: Jingoo Han<jg1.han@samsung.com>
> ---
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Regards
Mugunthan V N
^ permalink raw reply [flat|nested] 39+ messages in thread
* RE: [PATCH 10/31] net: fec: use dev_get_platdata()
2013-08-30 4:56 ` [PATCH 10/31] net: fec: " Jingoo Han
@ 2013-08-30 5:23 ` Duan Fugang-B38611
0 siblings, 0 replies; 39+ messages in thread
From: Duan Fugang-B38611 @ 2013-08-30 5:23 UTC (permalink / raw)
To: Jingoo Han, 'David S. Miller'; +Cc: netdev
From: Jingoo Han<jg1.han@samsung.com>
Data: Friday, August 30, 2013 12:56 PM +0900
> To: 'David S. Miller'
> Cc: netdev@vger.kernel.org; 'Jingoo Han'
> Subject: [PATCH 10/31] net: fec: use dev_get_platdata()
>
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change to make
> the code simpler and enhance the readability.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Fugang Duan <B38611@freescale.com>
Regards
Andy
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH 05/31] net: at91_ether: use dev_get_platdata()
2013-08-30 5:11 ` [PATCH 05/31] net: at91_ether: " Jingoo Han
@ 2013-08-30 7:53 ` Nicolas Ferre
0 siblings, 0 replies; 39+ messages in thread
From: Nicolas Ferre @ 2013-08-30 7:53 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'David S. Miller', netdev
On 30/08/2013 07:11, Jingoo Han :
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change
> to make the code simpler and enhance the readability.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> drivers/net/ethernet/cadence/at91_ether.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/cadence/at91_ether.c b/drivers/net/ethernet/cadence/at91_ether.c
> index bb5d63f..ce75de9 100644
> --- a/drivers/net/ethernet/cadence/at91_ether.c
> +++ b/drivers/net/ethernet/cadence/at91_ether.c
> @@ -304,7 +304,7 @@ MODULE_DEVICE_TABLE(of, at91ether_dt_ids);
> /* Detect MAC & PHY and perform ethernet interface initialization */
> static int __init at91ether_probe(struct platform_device *pdev)
> {
> - struct macb_platform_data *board_data = pdev->dev.platform_data;
> + struct macb_platform_data *board_data = dev_get_platdata(&pdev->dev);
> struct resource *regs;
> struct net_device *dev;
> struct phy_device *phydev;
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH 06/31] net: macb: use dev_get_platdata()
2013-08-30 5:12 ` [PATCH 06/31] net: macb: " Jingoo Han
@ 2013-08-30 7:54 ` Nicolas Ferre
0 siblings, 0 replies; 39+ messages in thread
From: Nicolas Ferre @ 2013-08-30 7:54 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'David S. Miller', netdev
On 30/08/2013 07:12, Jingoo Han :
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change
> to make the code simpler and enhance the readability.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> ---
> drivers/net/ethernet/cadence/macb.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c
> index fe06ab0..20f94d1 100644
> --- a/drivers/net/ethernet/cadence/macb.c
> +++ b/drivers/net/ethernet/cadence/macb.c
> @@ -125,7 +125,7 @@ void macb_get_hwaddr(struct macb *bp)
> u8 addr[6];
> int i;
>
> - pdata = bp->pdev->dev.platform_data;
> + pdata = dev_get_platdata(&bp->pdev->dev);
>
> /* Check all 4 address register for vaild address */
> for (i = 0; i < 4; i++) {
> @@ -335,7 +335,7 @@ int macb_mii_init(struct macb *bp)
> bp->pdev->name, bp->pdev->id);
> bp->mii_bus->priv = bp;
> bp->mii_bus->parent = &bp->dev->dev;
> - pdata = bp->pdev->dev.platform_data;
> + pdata = dev_get_platdata(&bp->pdev->dev);
>
> bp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
> if (!bp->mii_bus->irq) {
> @@ -1851,7 +1851,7 @@ static int __init macb_probe(struct platform_device *pdev)
>
> err = of_get_phy_mode(pdev->dev.of_node);
> if (err < 0) {
> - pdata = pdev->dev.platform_data;
> + pdata = dev_get_platdata(&pdev->dev);
> if (pdata && pdata->is_rmii)
> bp->phy_interface = PHY_INTERFACE_MODE_RMII;
> else
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH 01/31] net: ax88796: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (29 preceding siblings ...)
2013-08-30 5:13 ` [PATCH 21/31] net: stmmac: " Jingoo Han
@ 2013-08-30 21:45 ` David Miller
2013-08-31 18:14 ` Sergei Shtylyov
31 siblings, 0 replies; 39+ messages in thread
From: David Miller @ 2013-08-30 21:45 UTC (permalink / raw)
To: jg1.han; +Cc: netdev
I've applied all of the networking patchs of this series to net-next,
thanks.
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH 01/31] net: ax88796: use dev_get_platdata()
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
` (30 preceding siblings ...)
2013-08-30 21:45 ` [PATCH 01/31] net: ax88796: " David Miller
@ 2013-08-31 18:14 ` Sergei Shtylyov
31 siblings, 0 replies; 39+ messages in thread
From: Sergei Shtylyov @ 2013-08-31 18:14 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'David S. Miller', netdev
Hello.
On 08/30/2013 08:44 AM, Jingoo Han wrote:
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change
> to make the code simpler and enhance the readability.
This hardly achieves either...
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/net/ethernet/8390/ax88796.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c
> index b7232a9..f92f001 100644
> --- a/drivers/net/ethernet/8390/ax88796.c
> +++ b/drivers/net/ethernet/8390/ax88796.c
> @@ -840,7 +840,7 @@ static int ax_probe(struct platform_device *pdev)
> ei_local = netdev_priv(dev);
> ax = to_ax_dev(dev);
>
> - ax->plat = pdev->dev.platform_data;
> + ax->plat = dev_get_platdata(&pdev->dev);
> platform_set_drvdata(pdev, dev);
>
> ei_local->rxcr_base = ax->plat->rcr_val;
WBR, Sergei
^ permalink raw reply [flat|nested] 39+ messages in thread
* Re: [PATCH 15/31] net: netx-eth: use dev_get_platdata()
2013-08-30 4:59 ` [PATCH 15/31] net: netx-eth: " Jingoo Han
@ 2013-08-31 18:17 ` Sergei Shtylyov
0 siblings, 0 replies; 39+ messages in thread
From: Sergei Shtylyov @ 2013-08-31 18:17 UTC (permalink / raw)
To: Jingoo Han; +Cc: 'David S. Miller', netdev
Hello.
On 08/30/2013 08:59 AM, Jingoo Han wrote:
> Use the wrapper function for retrieving the platform data instead of
> accessing dev->platform_data directly. This is a cosmetic change
> to make the code simpler and enhance the readability.
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/net/ethernet/netx-eth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/net/ethernet/netx-eth.c b/drivers/net/ethernet/netx-eth.c
> index dc2c6f5..235fd51 100644
> --- a/drivers/net/ethernet/netx-eth.c
> +++ b/drivers/net/ethernet/netx-eth.c
> @@ -390,7 +390,7 @@ static int netx_eth_drv_probe(struct platform_device *pdev)
>
> priv = netdev_priv(ndev);
>
> - pdata = (struct netxeth_platform_data *)pdev->dev.platform_data;
> + pdata = (struct netxeth_platform_data *)dev_get_platdata(&pdev->dev);
Cast from 'void *' is not needed. This is a material of another patch, of
course...
WBR, Sergei
^ permalink raw reply [flat|nested] 39+ messages in thread
end of thread, other threads:[~2013-08-31 18:17 UTC | newest]
Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-30 4:44 [PATCH 01/31] net: ax88796: use dev_get_platdata() Jingoo Han
2013-08-30 4:50 ` [PATCH 02/31] net: bfin_mac: " Jingoo Han
2013-08-30 4:51 ` [PATCH 03/31] net: au1000_eth: " Jingoo Han
2013-08-30 4:52 ` [PATCH 04/31] net: bcm63xx_enet: " Jingoo Han
2013-08-30 4:54 ` [PATCH 07/31] net: ep93xx_eth: " Jingoo Han
2013-08-30 4:55 ` [PATCH 08/31] net: dm9000: " Jingoo Han
2013-08-30 4:55 ` [PATCH 09/31] net: ethoc: " Jingoo Han
2013-08-30 4:56 ` [PATCH 10/31] net: fec: " Jingoo Han
2013-08-30 5:23 ` Duan Fugang-B38611
2013-08-30 4:57 ` [PATCH 11/31] net: mv643xx_eth: " Jingoo Han
2013-08-30 4:58 ` [PATCH 12/31] net: pxa168_eth: " Jingoo Han
2013-08-30 4:58 ` [PATCH 13/31] net: ks8842: " Jingoo Han
2013-08-30 4:59 ` [PATCH 14/31] net: ks8851-ml: " Jingoo Han
2013-08-30 4:59 ` [PATCH 15/31] net: netx-eth: " Jingoo Han
2013-08-31 18:17 ` Sergei Shtylyov
2013-08-30 5:00 ` [PATCH 16/31] net: sh_eth: " Jingoo Han
2013-08-30 5:00 ` [PATCH 17/31] net: seeq: " Jingoo Han
2013-08-30 5:01 ` [PATCH 18/31] net: smc91x: " Jingoo Han
2013-08-30 5:02 ` [PATCH 19/31] net: smc911x: " Jingoo Han
2013-08-30 5:02 ` [PATCH 20/31] net: smsc911x: " Jingoo Han
2013-08-30 5:04 ` [PATCH 22/31] net: niu: " Jingoo Han
2013-08-30 5:05 ` [PATCH 23/31] net: cpmac: " Jingoo Han
2013-08-30 5:05 ` [PATCH 24/31] net: davinci_emac: " Jingoo Han
2013-08-30 5:17 ` Mugunthan V N
2013-08-30 5:06 ` [PATCH 25/31] net: davinci_mdio: " Jingoo Han
2013-08-30 5:18 ` Mugunthan V N
2013-08-30 5:06 ` [PATCH 26/31] net: tsi108: " Jingoo Han
2013-08-30 5:07 ` [PATCH 27/31] net: w5300: " Jingoo Han
2013-08-30 5:07 ` [PATCH 28/31] net: w5100: " Jingoo Han
2013-08-30 5:08 ` [PATCH 29/31] net: ixp4xx_eth: " Jingoo Han
2013-08-30 5:08 ` [PATCH 30/31] net: mdio-gpio: " Jingoo Han
2013-08-30 5:09 ` [PATCH 31/31] net: mdio-mux-gpio: " Jingoo Han
2013-08-30 5:11 ` [PATCH 05/31] net: at91_ether: " Jingoo Han
2013-08-30 7:53 ` Nicolas Ferre
2013-08-30 5:12 ` [PATCH 06/31] net: macb: " Jingoo Han
2013-08-30 7:54 ` Nicolas Ferre
2013-08-30 5:13 ` [PATCH 21/31] net: stmmac: " Jingoo Han
2013-08-30 21:45 ` [PATCH 01/31] net: ax88796: " David Miller
2013-08-31 18:14 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).