+ drivers-rtc-rtc-tilec-add-missing-platform_device_unregister-when-module-exits.patch added to -mm tree

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

 



The patch titled
     Subject: drivers/rtc/rtc-tile.c: add missing platform_device_unregister() when module exits
has been added to the -mm tree.  Its filename is
     drivers-rtc-rtc-tilec-add-missing-platform_device_unregister-when-module-exits.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: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
Subject: drivers/rtc/rtc-tile.c: add missing platform_device_unregister() when module exits

We have registered platform device when module init, and need to unregister
it when the module exits.

Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
Cc: Jingoo Han <jg1.han@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/rtc/rtc-tile.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/rtc/rtc-tile.c~drivers-rtc-rtc-tilec-add-missing-platform_device_unregister-when-module-exits drivers/rtc/rtc-tile.c
--- a/drivers/rtc/rtc-tile.c~drivers-rtc-rtc-tilec-add-missing-platform_device_unregister-when-module-exits
+++ a/drivers/rtc/rtc-tile.c
@@ -146,6 +146,7 @@ exit_driver_unregister:
  */
 static void __exit tile_rtc_driver_exit(void)
 {
+	platform_device_unregister(tile_rtc_platform_device);
 	platform_driver_unregister(&tile_rtc_platform_driver);
 }
 
_

Patches currently in -mm which might be from yongjun_wei@xxxxxxxxxxxxxxxxx are

origin.patch
linux-next.patch
drivers-rtc-rtc-tilec-add-missing-platform_device_unregister-when-module-exits.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