aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2009-08-23 22:57:30 -0700
committerDavid S. Miller <davem@davemloft.net>2009-08-23 22:57:30 -0700
commitd2f3ad4cedc00c8ee848e7abe9b2bbc93b9a8c2d (patch)
tree922c4d71350e9270752f2ad81327fe185ef4fa93 /drivers/net
parent28e9fc592cb8c7a43e4d3147b38be6032a0e81bc (diff)
downloadkernel_samsung_aries-d2f3ad4cedc00c8ee848e7abe9b2bbc93b9a8c2d.zip
kernel_samsung_aries-d2f3ad4cedc00c8ee848e7abe9b2bbc93b9a8c2d.tar.gz
kernel_samsung_aries-d2f3ad4cedc00c8ee848e7abe9b2bbc93b9a8c2d.tar.bz2
pxaficp-ir: remove incorrect net_device_ops
This patch fixes broken pxaficp-ir. The problem was in incorrect net_device_ops being specified which prevented the driver from operating. The symptoms were: - failing ifconfig for IrLAN, resulting in SIOCSIFFLAGS: Cannot assign requested address - irattach working for IrCOMM, but the port stayed disabled Moreover this patch corrects missing sysfs device link. Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/irda/pxaficp_ir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c
index 3376a4f..77d10ed 100644
--- a/drivers/net/irda/pxaficp_ir.c
+++ b/drivers/net/irda/pxaficp_ir.c
@@ -803,9 +803,6 @@ static const struct net_device_ops pxa_irda_netdev_ops = {
.ndo_stop = pxa_irda_stop,
.ndo_start_xmit = pxa_irda_hard_xmit,
.ndo_do_ioctl = pxa_irda_ioctl,
- .ndo_change_mtu = eth_change_mtu,
- .ndo_validate_addr = eth_validate_addr,
- .ndo_set_mac_address = eth_mac_addr,
};
static int pxa_irda_probe(struct platform_device *pdev)
@@ -830,6 +827,7 @@ static int pxa_irda_probe(struct platform_device *pdev)
if (!dev)
goto err_mem_3;
+ SET_NETDEV_DEV(dev, &pdev->dev);
si = netdev_priv(dev);
si->dev = &pdev->dev;
si->pdata = pdev->dev.platform_data;