From: Anton Vorontsov Date: Tue, 10 Nov 2009 14:11:05 +0000 (+0000) Subject: gianfar: Fix build with CONFIG_PM=y X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ea681d4e6c01b191f01644024f35901721fa438;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git gianfar: Fix build with CONFIG_PM=y commit fba4ed030cfae7efdb6b79a57b0c5a9d72c9 ("gianfar: Add Multiple Queue Support") introduced the following build failure: CC gianfar.o gianfar.c: In function 'gfar_restore': gianfar.c:1249: error: request for member 'napi' in something not a structure or union This patch fixes the issue. Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: David S. Miller --- diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 79c28f55ba9..a5b0038a8d9 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -1246,7 +1246,7 @@ static int gfar_restore(struct device *dev) phy_start(priv->phydev); netif_device_attach(ndev); - napi_enable(&priv->gfargrp.napi); + enable_napi(priv); return 0; }