+ sdhci-spear-st-spear-based-sdhci-controller-glue-update.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     sdhci-spear-st-spear-based-sdhci-controller-glue-update
has been added to the -mm tree.  Its filename is
     sdhci-spear-st-spear-based-sdhci-controller-glue-update.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: sdhci-spear-st-spear-based-sdhci-controller-glue-update
From: Viresh KUMAR <viresh.kumar@xxxxxx>

- dev_get_platdata is used to get dev->platform_data

Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/mmc/host/sdhci-spear.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff -puN drivers/mmc/host/sdhci-spear.c~sdhci-spear-st-spear-based-sdhci-controller-glue-update drivers/mmc/host/sdhci-spear.c
--- a/drivers/mmc/host/sdhci-spear.c~sdhci-spear-st-spear-based-sdhci-controller-glue-update
+++ a/drivers/mmc/host/sdhci-spear.c
@@ -41,8 +41,7 @@ static irqreturn_t sdhci_gpio_irq(int ir
 {
 	struct platform_device *pdev = dev_id;
 	struct sdhci_host *host = platform_get_drvdata(pdev);
-	struct spear_sdhci *sdhci =
-		(struct spear_sdhci *)(pdev->dev.platform_data);
+	struct spear_sdhci *sdhci = dev_get_platdata(&pdev->dev);
 	unsigned long gpio_irq_type;
 	int val;
 
@@ -112,7 +111,7 @@ static int __devinit sdhci_probe(struct 
 	}
 
 	/* overwrite platform_data */
-	sdhci->data = (struct sdhci_plat_data *)(pdev->dev.platform_data);
+	sdhci->data = dev_get_platdata(&pdev->dev);
 	pdev->dev.platform_data = sdhci;
 
 	if (pdev->dev.parent)
@@ -241,8 +240,7 @@ static int __devexit sdhci_remove(struct
 {
 	struct sdhci_host *host = platform_get_drvdata(pdev);
 	struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	struct spear_sdhci *sdhci =
-		(struct spear_sdhci *)(pdev->dev.platform_data);
+	struct spear_sdhci *sdhci = dev_get_platdata(&pdev->dev);
 	int dead;
 	u32 scratch;
 
_

Patches currently in -mm which might be from viresh.kumar@xxxxxx are

origin.patch
sdhci-spear-st-spear-based-sdhci-controller-glue.patch
sdhci-spear-st-spear-based-sdhci-controller-glue-update.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux