Message ID | 1506013525-29291-61-git-send-email-allen.lkml@gmail.com |
---|---|
State | Accepted, archived |
Delegated to: | David Miller |
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hj5CPQ/z"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xyjrN54yNz9sRq for <patchwork-incoming@ozlabs.org>; Fri, 22 Sep 2017 03:13:56 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752959AbdIURMF (ORCPT <rfc822;patchwork-incoming@ozlabs.org>); Thu, 21 Sep 2017 13:12:05 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34488 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751785AbdIURMC (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 13:12:02 -0400 Received: by mail-pg0-f68.google.com with SMTP id u18so3758544pgo.1; Thu, 21 Sep 2017 10:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2pq3S6OyrOAtzXW4siUtXKX/IIqKmAb8/ncRIBOEIec=; b=hj5CPQ/zyTYJm6+di/ZoFcGNIZoPvyjEBGxZ2IY0A7aCYjx2W1bGUEziJMpptVc6fX et6t0ANFq0xzVhT2exMtb3WCMC1TUY/T9bQ97oxe2Nj5vulld08GEfFLn6hNR7G/vlpr MyXctriECDipjhgBCZKm02L8XfF/yn+vRwGUABa+dBH2ZM/Axi4mjIV+gNZBK8Z9lm3H kg1H4SGDKCz6t2JBm9iRPY9q/qBL+McAcalfXi6O5C7a/srT/lzJnOFreorAofct1me/ 3c4CoMPGVcJT9atmdBj8oTa9ULuOXRo4wimqAzQV5Rsf+bAf1gAknozRD2Yp3k3Cu+2L /P/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2pq3S6OyrOAtzXW4siUtXKX/IIqKmAb8/ncRIBOEIec=; b=OtPog2I/rc+lnMnytSzKxJD/TXkjJMxq25+k+g1PojAFWxNajE9fwhBF4voTW85BCj vlEWRg3SdshLQzGvwseaR/pIlAxoQU7Z5A7YzVKMuOxqBQAhHKlDfTz42F1voB8IdtAT sSpTn/ECWCtCuJi9tImPCjG1Tn7AHS+0LwVK51RMW8BzdV+wV5UkjOhSVJiyo+MP3+r5 x0sf0xm5ad88vW+a1WF2a4FuAPtHyUUNhDn0ehB+0PoBUNxKpTd4jIpLnnrBIpn7oiFk v4JzFOIEYX+vfNiyzJCAMlpxm+ub/Gsg2kmT3VNxwmjLlZbRj3tqGJZUMueIj2EXIjnO IF5g== X-Gm-Message-State: AHPjjUhCGK12lMPDLnx6voabETCQjcMh0RyQ7rZ3wVusoxJJnqlXUeV6 o5nOuDnKhq+EAFG3xeYi6tFDp1K6 X-Google-Smtp-Source: AOwi7QCrLhmupjSbtAhuRh5WX1DKS/dJzNC9dXLe7OE9w4B5YawuR6LAyYDFDDnoecyhFuYbiLhhZw== X-Received: by 10.84.245.149 with SMTP id j21mr6163961pll.105.1506013921603; Thu, 21 Sep 2017 10:12:01 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id p12sm3174090pgn.90.2017.09.21.10.11.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 10:12:00 -0700 (PDT) From: Allen Pais <allen.lkml@gmail.com> To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, m.grzeschik@pengutronix.de, dmitry.tarnyagin@lockless.no, wg@grandegger.com, mkl@pengutronix.de, mark.einon@gmail.com, linux@armlinux.org.uk, pcnet32@frontier.com, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, venza@brownhat.org, ajk@comnets.uni-bremen.de, jes@trained-monkey.org, romieu@fr.zoreil.com, khc@pm.waw.pl, simon@thekelleys.org.uk, davem@davemloft.net, linux-can@vger.kernel.org, adi-buildroot-devel@lists.sourceforge.net, Allen Pais <allen.lkml@gmail.com> Subject: [PATCH 60/64] drivers: net: uli526x: use setup_timer() helper. Date: Thu, 21 Sep 2017 22:35:21 +0530 Message-Id: <1506013525-29291-61-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506013525-29291-1-git-send-email-allen.lkml@gmail.com> References: <1506013525-29291-1-git-send-email-allen.lkml@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
use setup_timer() helper function.
|
expand
|
diff --git a/drivers/net/ethernet/dec/tulip/uli526x.c b/drivers/net/ethernet/dec/tulip/uli526x.c index 7fc248e..5fbbc0c 100644 --- a/drivers/net/ethernet/dec/tulip/uli526x.c +++ b/drivers/net/ethernet/dec/tulip/uli526x.c @@ -491,10 +491,8 @@ static int uli526x_open(struct net_device *dev) netif_wake_queue(dev); /* set and active a timer process */ - init_timer(&db->timer); + setup_timer(&db->timer, uli526x_timer, (unsigned long)dev); db->timer.expires = ULI526X_TIMER_WUT + HZ * 2; - db->timer.data = (unsigned long)dev; - db->timer.function = uli526x_timer; add_timer(&db->timer); return 0;
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais <allen.lkml@gmail.com> --- drivers/net/ethernet/dec/tulip/uli526x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)