can: mcp251x: remove deprecated board file setup example
[linux-2.6-microblaze.git] / drivers / net / can / spi / mcp251x.c
index 05547dd..6e58313 100644 (file)
  * - Sascha Hauer, Marc Kleine-Budde, Pengutronix
  * - Simon Kallweit, intefo AG
  * Copyright 2007
- *
- * Your platform definition file should specify something like:
- *
- * static struct mcp251x_platform_data mcp251x_info = {
- *         .oscillator_frequency = 8000000,
- * };
- *
- * static struct spi_board_info spi_board_info[] = {
- *         {
- *                 .modalias = "mcp2510",
- *                     // "mcp2515" or "mcp25625" depending on your controller
- *                 .platform_data = &mcp251x_info,
- *                 .irq = IRQ_EINT13,
- *                 .max_speed_hz = 2*1000*1000,
- *                 .chip_select = 2,
- *         },
- * };
- *
- * Please see mcp251x.h for a description of the fields in
- * struct mcp251x_platform_data.
  */
 
 #include <linux/can/core.h>
@@ -264,8 +244,7 @@ static void mcp251x_clean(struct net_device *net)
 
        if (priv->tx_skb || priv->tx_len)
                net->stats.tx_errors++;
-       if (priv->tx_skb)
-               dev_kfree_skb(priv->tx_skb);
+       dev_kfree_skb(priv->tx_skb);
        if (priv->tx_len)
                can_free_echo_skb(priv->net, 0);
        priv->tx_skb = NULL;