lkml.org 
[lkml]   [2014]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.13 130/149] can: flexcan: flexcan_remove(): add missing netif_napi_del()
    Date
    3.13-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Marc Kleine-Budde <mkl@pengutronix.de>

    commit d96e43e8fce28cf97df576a07af9d65657a41a6f upstream.

    This patch adds the missing netif_napi_del() to the flexcan_remove() function.

    Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/net/can/flexcan.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    --- a/drivers/net/can/flexcan.c
    +++ b/drivers/net/can/flexcan.c
    @@ -1143,9 +1143,10 @@ static int flexcan_probe(struct platform
    static int flexcan_remove(struct platform_device *pdev)
    {
    struct net_device *dev = platform_get_drvdata(pdev);
    + struct flexcan_priv *priv = netdev_priv(dev);

    unregister_flexcandev(dev);
    -
    + netif_napi_del(&priv->napi);
    free_candev(dev);

    return 0;



    \
     
     \ /
      Last update: 2014-03-21 02:21    [W:4.264 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site