aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/can/at91_can.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c
index 248e03fec034..2b972812b2d1 100644
--- a/drivers/net/can/at91_can.c
+++ b/drivers/net/can/at91_can.c
@@ -1257,7 +1257,6 @@ static int __devinit at91_can_probe(struct platform_device *pdev)
1257 dev->netdev_ops = &at91_netdev_ops; 1257 dev->netdev_ops = &at91_netdev_ops;
1258 dev->irq = irq; 1258 dev->irq = irq;
1259 dev->flags |= IFF_ECHO; 1259 dev->flags |= IFF_ECHO;
1260 dev->sysfs_groups[0] = &at91_sysfs_attr_group;
1261 1260
1262 priv = netdev_priv(dev); 1261 priv = netdev_priv(dev);
1263 priv->can.clock.freq = clk_get_rate(clk); 1262 priv->can.clock.freq = clk_get_rate(clk);
@@ -1275,6 +1274,9 @@ static int __devinit at91_can_probe(struct platform_device *pdev)
1275 1274
1276 netif_napi_add(dev, &priv->napi, at91_poll, get_mb_rx_num(priv)); 1275 netif_napi_add(dev, &priv->napi, at91_poll, get_mb_rx_num(priv));
1277 1276
1277 if (at91_is_sam9263(priv))
1278 dev->sysfs_groups[0] = &at91_sysfs_attr_group;
1279
1278 dev_set_drvdata(&pdev->dev, dev); 1280 dev_set_drvdata(&pdev->dev, dev);
1279 SET_NETDEV_DEV(dev, &pdev->dev); 1281 SET_NETDEV_DEV(dev, &pdev->dev);
1280 1282