+ drivers-block-swimc-remove-unnecessary-platform_set_drvdata.patch added to -mm tree

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

 



Subject: + drivers-block-swimc-remove-unnecessary-platform_set_drvdata.patch added to -mm tree
To: jg1.han@xxxxxxxxxxx,axboe@xxxxxxxxx,khali@xxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Wed, 21 Aug 2013 13:18:45 -0700


The patch titled
     Subject: drivers/block/swim.c: remove unnecessary platform_set_drvdata()
has been added to the -mm tree.  Its filename is
     drivers-block-swimc-remove-unnecessary-platform_set_drvdata.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/drivers-block-swimc-remove-unnecessary-platform_set_drvdata.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/drivers-block-swimc-remove-unnecessary-platform_set_drvdata.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 ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Jingoo Han <jg1.han@xxxxxxxxxxx>
Subject: drivers/block/swim.c: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release or on
probe failure.  Thus, it is not needed to manually clear the device driver
data to NULL.

Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx>
Cc: Jean Delvare <khali@xxxxxxxxxxxx>
Cc: Jens Axboe <axboe@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/block/swim.c |    2 --
 1 file changed, 2 deletions(-)

diff -puN drivers/block/swim.c~drivers-block-swimc-remove-unnecessary-platform_set_drvdata drivers/block/swim.c
--- a/drivers/block/swim.c~drivers-block-swimc-remove-unnecessary-platform_set_drvdata
+++ a/drivers/block/swim.c
@@ -924,7 +924,6 @@ static int swim_probe(struct platform_de
 	return 0;
 
 out_kfree:
-	platform_set_drvdata(dev, NULL);
 	kfree(swd);
 out_iounmap:
 	iounmap(swim_base);
@@ -962,7 +961,6 @@ static int swim_remove(struct platform_d
 	if (res)
 		release_mem_region(res->start, resource_size(res));
 
-	platform_set_drvdata(dev, NULL);
 	kfree(swd);
 
 	return 0;
_

Patches currently in -mm which might be from jg1.han@xxxxxxxxxxx are

block-replace-strict_strtoul-with-kstrtoul.patch
block-blk-sysfs-replace-strict_strtoul-with-kstrtoul.patch
drivers-block-mg_diskc-make-mg_times_out-static.patch
drivers-block-swimc-remove-unnecessary-platform_set_drvdata.patch
mm-replace-strict_strtoul-with-kstrtoul.patch
drivers-firmware-google-gsmic-replace-strict_strtoul-with-kstrtoul.patch
rtc-rtc-nuc900-use-null-instead-of-0.patch
w1-replace-strict_strtol-with-kstrtol.patch
linux-next.patch
kernel-replace-strict_strto-with-kstrto.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