{"id":817097,"url":"http://patchwork.ozlabs.org/api/patches/817097/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1506013525-29291-41-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-41-git-send-email-allen.lkml@gmail.com>","list_archive_url":null,"date":"2017-09-21T17:05:01","name":"[40/64] drivers: net: sis900: use setup_timer() helper.","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"4c0f004938b8b04a3c1696929daf7e2bf182998f","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-41-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/817097/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/817097/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=\"d+qN+rtP\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyk471PFtz9sRq\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 22 Sep 2017 03:24:07 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752766AbdIURKA (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 21 Sep 2017 13:10:00 -0400","from mail-pg0-f65.google.com ([74.125.83.65]:33224 \"EHLO\n\tmail-pg0-f65.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751871AbdIURJ4 (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Thu, 21 Sep 2017 13:09:56 -0400","by mail-pg0-f65.google.com with SMTP id i130so3755043pgc.0;\n\tThu, 21 Sep 2017 10:09:55 -0700 (PDT)","from localhost.localdomain ([103.42.74.194])\n\tby smtp.gmail.com with ESMTPSA id\n\tp12sm3174090pgn.90.2017.09.21.10.09.48\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 21 Sep 2017 10:09:54 -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=Sg4C5+PkGdFGPLwV8e32yHnJixreJK64r8MOI9WgwgU=;\n\tb=d+qN+rtPbD2e/qVcbtnHg9+Q9CrSAdhnp8/fk3WHvRsnQl9M6+8PBLWJHWTFMx3Iix\n\tG/JkP4XTUu7SUyAvb4QdVTEfjF2FaO6DzfjiADNqweYKUKdlHZn1vC245g+eIen9mxh1\n\tG9WaxU1GEVUxYETKLqtfPcBnP7uKulJXp3KLdV0C0X0nGc9QNsmuOFiNIhX9ZaluXfuj\n\t2Bsnhg3aaAxm1IKvxok9AFu1xYUkuvMhAS2ms/kpE6IDTTT0fFBUYG/za0MzlPPEWuLA\n\tvcoNfZhSNdXqVMfGIj1c/dKbtsbh/pxRJipMze2+oTWv1Fh3OnTWGCdiUj9Z5BfDmwRO\n\tEfNQ==","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=Sg4C5+PkGdFGPLwV8e32yHnJixreJK64r8MOI9WgwgU=;\n\tb=dZ3zCNhDpl3pjCI0PdKzPdpFieW8rBLn978nYadvgRikuMeOgwraK/P4oFlJEr08hG\n\t6FYu0bVR06/KDruU1LbVnO0/n2RdkgC0x7p1EwQAh6sPzOxdEikOqqUT4yqwvrFBmS+X\n\tfhFZ6/qCNGEFfE7LVnj5mJhD+C/6U6MvyHXuxAaNY1pRyIcGnnXVBleIi1LDf9JcF3EB\n\toyzn5VutfKoyF2Z0fnG60d3vORB15CJscoQLg+eJgQYvuXLnlZYt+DHmtAGhTd6SPwii\n\tb8Auoutm/bA4OUlB8e6dHUqdRgvw28arpusCrFpKGDem3/VNFvEAvL2LUHo2C2PRsGSO\n\t2rKA==","X-Gm-Message-State":"AHPjjUhIOQ/jx2YmeA+QE/5mj9M175s8N79oi2dCiroS274njG/2St5Z\n\tYioYuF20FhlkX50iqKJrjcxfP9Ny","X-Google-Smtp-Source":"AOwi7QDTngWzKb4TnpHaLkVzFkmY8Hx4CZgoJ4xEIj+Ny0NMkyEZOlTtP/7SZtyZ8EuzGkAy61SQsw==","X-Received":"by 10.84.133.6 with SMTP id 6mr6053600plf.61.1506013795086;\n\tThu, 21 Sep 2017 10:09:55 -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 40/64] drivers: net: sis900: use setup_timer() helper.","Date":"Thu, 21 Sep 2017 22:35:01 +0530","Message-Id":"<1506013525-29291-41-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/sis/sis900.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)","diff":"diff --git a/drivers/net/ethernet/sis/sis900.c b/drivers/net/ethernet/sis/sis900.c\nindex 40bd883..cb61247 100644\n--- a/drivers/net/ethernet/sis/sis900.c\n+++ b/drivers/net/ethernet/sis/sis900.c\n@@ -1065,10 +1065,8 @@ sis900_open(struct net_device *net_dev)\n \n \t/* Set the timer to switch to check for link beat and perhaps switch\n \t   to an alternate media type. */\n-\tinit_timer(&sis_priv->timer);\n+\tsetup_timer(&sis_priv->timer, sis900_timer, (unsigned long)net_dev);\n \tsis_priv->timer.expires = jiffies + HZ;\n-\tsis_priv->timer.data = (unsigned long)net_dev;\n-\tsis_priv->timer.function = sis900_timer;\n \tadd_timer(&sis_priv->timer);\n \n \treturn 0;\n","prefixes":["40/64"]}