2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00
linux-next/fs/pstore
Anton Vorontsov 924d37118f pstore/ram: Probe as early as possible
Registering the platform driver before module_init allows us to log oopses
that happen during device probing.

This requires changing module_init to postcore_initcall, and switching
from platform_driver_probe to platform_driver_register because the
platform device is not registered when the platform driver is registered;
and because we use driver_register, now can't use create_bundle() (since
it will try to register the same driver once again), so we have to switch
to platform_device_register_data().

Also, some __init -> __devinit changes were needed.

Overall, the registration logic is now much clearer, since we have only
one driver registration point, and just an optional dummy device, which
is created from the module parameters.

Suggested-by: Colin Cross <ccross@android.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-20 16:15:22 -07:00
..
inode.c pstore: Add console log messages support 2012-06-13 16:59:27 -07:00
internal.h pstore: defer inserting OOPS entries into pstore 2011-08-16 11:53:01 -07:00
Kconfig pstore: Add console log messages support 2012-06-13 16:59:27 -07:00
Makefile staging: android: persistent_ram: Move to fs/pstore/ram_core.c 2012-05-17 08:50:00 -07:00
platform.c pstore/platform: Disable automatic updates by default 2012-06-13 16:59:37 -07:00
ram_core.c pstore/ram: Probe as early as possible 2012-06-20 16:15:22 -07:00
ram.c pstore/ram: Probe as early as possible 2012-06-20 16:15:22 -07:00