public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Santosh Y <santoshsy@gmail.com>
To: james.bottomley@hansenpartnership.com
Cc: linux-scsi@vger.kernel.org, vinholikatti@gmail.com,
	Sachin Kamat <sachin.kamat@linaro.org>,
	Santosh Y <santoshsy@gmail.com>
Subject: [PATCH 1/3] ufs: Remove redundant platform_set_drvdata()
Date: Tue, 14 May 2013 21:34:13 +0530	[thread overview]
Message-ID: <1368547455-5211-2-git-send-email-santoshsy@gmail.com> (raw)
In-Reply-To: <1368547455-5211-1-git-send-email-santoshsy@gmail.com>

From: Sachin Kamat <sachin.kamat@linaro.org>

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>

diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c
index 03319ac..3db2ee1 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.c
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.c
@@ -184,7 +184,6 @@ static int ufshcd_pltfrm_remove(struct platform_device *pdev)
 		mem_size = resource_size(mem_res);
 		release_mem_region(mem_res->start, mem_size);
 	}
-	platform_set_drvdata(pdev, NULL);
 	return 0;
 }
 
-- 
1.8.1.2


  reply	other threads:[~2013-05-14 16:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14 16:04 [PATCH 0/3] UFSHCD updates Santosh Y
2013-05-14 16:04 ` Santosh Y [this message]
2013-05-14 16:04 ` [PATCH 2/3] SCSI_UFSHCD should depend on SCSI_DMA Santosh Y
2013-05-14 16:04 ` [PATCH 3/3] Documentation: devicetree: Add DT bindings for UFS host controller Santosh Y

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=1368547455-5211-2-git-send-email-santoshsy@gmail.com \
    --to=santoshsy@gmail.com \
    --cc=james.bottomley@hansenpartnership.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=sachin.kamat@linaro.org \
    --cc=vinholikatti@gmail.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