lkml.org 
[lkml]   [2012]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    Subject[PATCH] pstore: add missed platform_device_unregister
    From
    From 152373a6262045d19023cf45de84ad3c69316a45 Mon Sep 17 00:00:00 2001
    From: Jovi Zhang <bookjovi@gmail.com>
    Date: Mon, 20 Aug 2012 14:20:01 +0800
    Subject: [PATCH] pstore: add missed platform_device_unregister

    we need unregister platform device when module exit, add it.

    Signed-off-by: Jovi Zhang <bookjovi@gmail.com>
    ---
    fs/pstore/ram.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
    index 0b311bc..adb218a 100644
    --- a/fs/pstore/ram.c
    +++ b/fs/pstore/ram.c
    @@ -537,6 +537,7 @@ postcore_initcall(ramoops_init);
    static void __exit ramoops_exit(void)
    {
    platform_driver_unregister(&ramoops_driver);
    + platform_device_unregister(dummy);
    kfree(dummy_data);
    }
    module_exit(ramoops_exit);
    --
    1.7.9.7

    \
     
     \ /
      Last update: 2012-08-20 09:41    [W:0.022 / U:30.484 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site