summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2011-06-01 00:20:17 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2011-06-06 14:20:55 +0200
commit07a648e668aa7f7c94d41d8d2e4ad53b609e391d (patch)
tree17302db4d0ef336cdd7bb9ffd225863cd4640e29 /drivers/net/can
parentd3d47264a364aa3adcbb485471dbf9f693fb4216 (diff)
downloadtalos-obmc-linux-07a648e668aa7f7c94d41d8d2e4ad53b609e391d.tar.gz
talos-obmc-linux-07a648e668aa7f7c94d41d8d2e4ad53b609e391d.zip
can: at91_can: register mb0 sysfs entry only on at91sam9263
This patch prepares the driver for the at91sam9X5 processors, which don't have the mb0 bug. (See commit 3a5655a5b545e9647c3437473ee3d815fe1b9050 for more details.) Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can')
-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)
dev->netdev_ops = &at91_netdev_ops;
dev->irq = irq;
dev->flags |= IFF_ECHO;
- dev->sysfs_groups[0] = &at91_sysfs_attr_group;
priv = netdev_priv(dev);
priv->can.clock.freq = clk_get_rate(clk);
@@ -1275,6 +1274,9 @@ static int __devinit at91_can_probe(struct platform_device *pdev)
netif_napi_add(dev, &priv->napi, at91_poll, get_mb_rx_num(priv));
+ if (at91_is_sam9263(priv))
+ dev->sysfs_groups[0] = &at91_sysfs_attr_group;
+
dev_set_drvdata(&pdev->dev, dev);
SET_NETDEV_DEV(dev, &pdev->dev);
OpenPOWER on IntegriCloud