mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@infradead.org>
To: Axel Lin <axel.lin@gmail.com>
Cc: vinod.koul@intel.com, linux-kernel@vger.kernel.org,
	Yong Wang <yong.y.wang@intel.com>,
	Dan Williams <dan.j.williams@intel.com>
Subject: Re: [PATCH] dma: intel_mid_dma: remove redundant pci_set_drvdata calls
Date: Mon, 25 Jul 2011 19:55:08 +0530	[thread overview]
Message-ID: <1311603908.8206.17.camel@vkoul-mobl4> (raw)
In-Reply-To: <1311058097.2873.2.camel@phoenix>

On Tue, 2011-07-19 at 14:48 +0800, Axel Lin wrote:
> Call pci_set_drvdata() once in intel_mid_dma_probe() is enough.
> Remove redundant pci_set_drvdata() calls in dma_suspend() and dma_resume().
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  drivers/dma/intel_mid_dma.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
> index f653517..8a3fdd8 100644
> --- a/drivers/dma/intel_mid_dma.c
> +++ b/drivers/dma/intel_mid_dma.c
> @@ -1351,7 +1351,6 @@ int dma_suspend(struct pci_dev *pci, pm_message_t state)
>  			return -EAGAIN;
>  	}
>  	device->state = SUSPENDED;
> -	pci_set_drvdata(pci, device);
>  	pci_save_state(pci);
>  	pci_disable_device(pci);
>  	pci_set_power_state(pci, PCI_D3hot);
> @@ -1380,7 +1379,6 @@ int dma_resume(struct pci_dev *pci)
>  	}
>  	device->state = RUNNING;
>  	iowrite32(REG_BIT0, device->dma_base + DMA_CFG);
> -	pci_set_drvdata(pci, device);
>  	return 0;
>  }
>  
Applied, Thanks

-- 
~Vinod Koul
Intel Corp.


      reply	other threads:[~2011-07-25 14:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-19  6:48 Axel Lin
2011-07-25 14:25 ` Vinod Koul [this message]

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=1311603908.8206.17.camel@vkoul-mobl4 \
    --to=vkoul@infradead.org \
    --cc=axel.lin@gmail.com \
    --cc=dan.j.williams@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinod.koul@intel.com \
    --cc=yong.y.wang@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®