{"id":817091,"url":"http://patchwork.ozlabs.org/api/patches/817091/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-47-git-send-email-allen.lkml@gmail.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1506013525-29291-47-git-send-email-allen.lkml@gmail.com>","list_archive_url":null,"date":"2017-09-21T17:05:07","name":"[46/64] drivers: net: dmfe: use setup_timer() helper.","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"819fce112aea8f425bf2ea2a86086e70a1aa0633","submitter":{"id":72354,"url":"http://patchwork.ozlabs.org/api/people/72354/?format=json","name":"Allen Pais","email":"allen.lkml@gmail.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-47-git-send-email-allen.lkml@gmail.com/mbox/","series":[{"id":4448,"url":"http://patchwork.ozlabs.org/api/series/4448/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=4448","date":"2017-09-21T17:04:27","name":"use setup_timer() helper function.","version":1,"mbox":"http://patchwork.ozlabs.org/series/4448/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/817091/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/817091/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"ajobaP35\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyk1y0Zg6z9t3Z\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 03:22:14 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752883AbdIURKh (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 13:10:37 -0400","from mail-pf0-f193.google.com ([209.85.192.193]:38012 \"EHLO\n\tmail-pf0-f193.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752872AbdIURKe (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 13:10:34 -0400","by mail-pf0-f193.google.com with SMTP id a7so2715890pfj.5;\n\tThu, 21 Sep 2017 10:10:34 -0700 (PDT)","from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\tp12sm3174090pgn.90.2017.09.21.10.10.27\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 21 Sep 2017 10:10:32 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=0GsQg24u0iBiakXlpKunO4Qt0iMkDzNm7RNJdO4YkC4=;\n\tb=ajobaP35NQqhsTwn0k0VQ6O4JXTEHQp85mEI7gBnpTF66glTS6LcwIjuR/C441aIW8\n\tgfzb+xal3dzYOhSSiWF524T7I46h2C7lOydy5tQ1xxhBuz4Gzms5r1tBE9m4D/cHh/5g\n\tJwgQUlsJeZWJZprEdFahW0EBIAemtY8sJLbBJwA0fBVz44JYj+xkpwND8xvoaicazJ0I\n\tnBmclvJPocOsYVxPqch6vPffVvCljAkcE3Hhp0qmXvoZvvcpqFPak/ew4Y449vKA3mcD\n\tzkRMsEPmrl5rxfv9qNUHLRE3g9pO6kwuLt4a6NwbjWc0zIV68D7ACo2dxr7QLmVL+/22\n\tYtDw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=0GsQg24u0iBiakXlpKunO4Qt0iMkDzNm7RNJdO4YkC4=;\n\tb=LdiQ+7oz/Hy4e0Zk0eJRBbnoNoVY9uo/+JIFvvL3fa9xzNwPOUZuCNvXCwgjsxu8qS\n\tJad0Llqqf/mEVVgRyu41EzndLhSW6PmyPW/Tgp96okLGusyswB1w+TEWqYWPA6ja75w0\n\tHFTVuYahX1VHgj/RTtrlQfzTu0Yinmigwh0HsTF4+mGFXYNOhtucODlEUZnGb9gl48Fm\n\tcgO523cpU6V7oGcoRd7clzh71ohJcObylP8m2vcna0It81YbkrPkKWoP6ZPv+XISuSYH\n\tQU6r9ktz4o/vLjMA2Vn/gPUJfvvxzQL+TW8ZlLFhLHql62RgL8P+O5JBsQM3H/53VlEO\n\tNN6Q==","X-Gm-Message-State":"AHPjjUj/ZE8U6BT1d0ZPbz4IcFiqn16gOxyXc3+jeLUL+bFeSwEV098A\n\tyQfw3FJ4Cnsm63FqHt+Yk2EoVM/I","X-Google-Smtp-Source":"AOwi7QDW75nClFBbf7KxA2daTWVR0aAgdr/qHWCUduonkzMJZwhomfIalLbqMXpkbYykoGLhDMMiMw==","X-Received":"by 10.84.235.65 with SMTP id g1mr6140157plt.353.1506013833618;\n\tThu, 21 Sep 2017 10:10:33 -0700 (PDT)","From":"Allen Pais <allen.lkml@gmail.com>","To":"netdev@vger.kernel.org","Cc":"linux-kernel@vger.kernel.org, m.grzeschik@pengutronix.de,\n\tdmitry.tarnyagin@lockless.no, wg@grandegger.com,\n\tmkl@pengutronix.de, mark.einon@gmail.com, linux@armlinux.org.uk,\n\tpcnet32@frontier.com, f.fainelli@gmail.com,\n\tbcm-kernel-feedback-list@broadcom.com, venza@brownhat.org,\n\tajk@comnets.uni-bremen.de, jes@trained-monkey.org,\n\tromieu@fr.zoreil.com, khc@pm.waw.pl, simon@thekelleys.org.uk,\n\tdavem@davemloft.net, linux-can@vger.kernel.org,\n\tadi-buildroot-devel@lists.sourceforge.net,\n\tAllen Pais <allen.lkml@gmail.com>","Subject":"[PATCH 46/64] drivers: net: dmfe: use setup_timer() helper.","Date":"Thu, 21 Sep 2017 22:35:07 +0530","Message-Id":"<1506013525-29291-47-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"},"content":"Use setup_timer function instead of initializing timer with the\n    function and data fields.\n\nSigned-off-by: Allen Pais <allen.lkml@gmail.com>\n---\n drivers/net/ethernet/dec/tulip/dmfe.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)","diff":"diff --git a/drivers/net/ethernet/dec/tulip/dmfe.c b/drivers/net/ethernet/dec/tulip/dmfe.c\nindex 07e10a4..6585f73 100644\n--- a/drivers/net/ethernet/dec/tulip/dmfe.c\n+++ b/drivers/net/ethernet/dec/tulip/dmfe.c\n@@ -596,10 +596,8 @@ static int dmfe_open(struct net_device *dev)\n \tnetif_wake_queue(dev);\n \n \t/* set and active a timer process */\n-\tinit_timer(&db->timer);\n+\tsetup_timer(&db->timer, dmfe_timer, (unsigned long)dev);\n \tdb->timer.expires = DMFE_TIMER_WUT + HZ * 2;\n-\tdb->timer.data = (unsigned long)dev;\n-\tdb->timer.function = dmfe_timer;\n \tadd_timer(&db->timer);\n \n \treturn 0;\n","prefixes":["46/64"]}