mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dan Williams <dan.j.williams@intel.com>
To: Geliang Tang <geliangtang@gmail.com>
Cc: Vinod Koul <vinod.koul@intel.com>,
	Dave Jiang <dave.jiang@intel.com>,
	"dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dmaengine: ioat: use setup_timer
Date: Sun, 9 Apr 2017 11:04:02 -0700	[thread overview]
Message-ID: <CAPcyv4h-R1k8XzcTEbrjT2scL-75bumATNGUh1V7LOeLuLigag@mail.gmail.com> (raw)
In-Reply-To: <0ff6e139159043e3416b0e5bc89e9aa5399bbb8e.1490601847.git.geliangtang@gmail.com>

On Sat, Apr 8, 2017 at 6:41 PM, Geliang Tang <geliangtang@gmail.com> wrote:
> Use setup_timer() instead of init_timer() to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
> ---
>  drivers/dma/ioat/init.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c
> index cc5259b..6ad4384 100644
> --- a/drivers/dma/ioat/init.c
> +++ b/drivers/dma/ioat/init.c
> @@ -760,9 +760,7 @@ ioat_init_channel(struct ioatdma_device *ioat_dma,
>         dma_cookie_init(&ioat_chan->dma_chan);
>         list_add_tail(&ioat_chan->dma_chan.device_node, &dma->channels);
>         ioat_dma->idx[idx] = ioat_chan;
> -       init_timer(&ioat_chan->timer);
> -       ioat_chan->timer.function = ioat_timer_event;
> -       ioat_chan->timer.data = data;
> +       setup_timer(&ioat_chan->timer, ioat_timer_event, data);
>         tasklet_init(&ioat_chan->cleanup_task, ioat_cleanup_event, data);
>  }
>
> --
> 2.9.3
>

Reviewed-by: Dan Williams <dan.j.williams@intel.com>

  parent reply	other threads:[~2017-04-09 18:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-09  1:41 Geliang Tang
2017-04-09  1:41 ` [PATCH] i2c: img-scb: " Geliang Tang
2017-04-16 19:51   ` Wolfram Sang
2017-04-09  1:41 ` [PATCH] ide: " Geliang Tang
2017-05-08 21:37   ` David Miller
2017-04-09  1:41 ` [PATCH] SGI-XP: " Geliang Tang
2017-04-09 18:04 ` Dan Williams [this message]
2017-04-24  4:09 ` [PATCH] dmaengine: ioat: " Vinod Koul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPcyv4h-R1k8XzcTEbrjT2scL-75bumATNGUh1V7LOeLuLigag@mail.gmail.com \
    --to=dan.j.williams@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=geliangtang@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®