platform.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | platform.c (a1db8060f5c85e33ed810038036f409eed15decc) |
---|---|
1/* 2 * Persistent Storage - platform driver interface parts. 3 * 4 * Copyright (C) 2007-2008 Google, Inc. 5 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 483 unchanged lines hidden (view full) --- 492 pr_info("Registered %s as persistent store backend\n", psi->name); 493 494 return 0; 495} 496EXPORT_SYMBOL_GPL(pstore_register); 497 498void pstore_unregister(struct pstore_info *psi) 499{ | 1/* 2 * Persistent Storage - platform driver interface parts. 3 * 4 * Copyright (C) 2007-2008 Google, Inc. 5 * Copyright (C) 2010 Intel Corporation <tony.luck@intel.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 483 unchanged lines hidden (view full) --- 492 pr_info("Registered %s as persistent store backend\n", psi->name); 493 494 return 0; 495} 496EXPORT_SYMBOL_GPL(pstore_register); 497 498void pstore_unregister(struct pstore_info *psi) 499{ |
500 pstore_unregister_pmsg(); 501 pstore_unregister_ftrace(); 502 pstore_unregister_console(); | 500 if ((psi->flags & PSTORE_FLAGS_FRAGILE) == 0) { 501 pstore_unregister_pmsg(); 502 pstore_unregister_ftrace(); 503 pstore_unregister_console(); 504 } |
503 pstore_unregister_kmsg(); 504 505 free_buf_for_compression(); 506 507 psinfo = NULL; 508 backend = NULL; 509} 510EXPORT_SYMBOL_GPL(pstore_unregister); --- 84 unchanged lines hidden --- | 505 pstore_unregister_kmsg(); 506 507 free_buf_for_compression(); 508 509 psinfo = NULL; 510 backend = NULL; 511} 512EXPORT_SYMBOL_GPL(pstore_unregister); --- 84 unchanged lines hidden --- |