android: ram_console: use platform_device_register
authorColin Cross <ccross@android.com>
Thu, 12 Apr 2012 21:55:21 +0000 (14:55 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 16 Apr 2012 09:46:04 +0000 (14:46 +0530)
commitb235da8ac0e773e107c721ff044439a139f7dd63
treeffd91f4612032c72d0166c62ce35123cb1878eb3
parent0ecf912769d7d1720a68fed92a2bfbaed827172c
android: ram_console: use platform_device_register

platform_driver_probe can only be used when the platform device
is already present.  In order to enable debugging crashes during
very early boot, the ram_console driver needs to be registered
as early as possible to allow the device to probe as soon as it
is registered at arch_initcall time.  This requires the driver
to be registered before the device.

Replace platform_driver_probe with platform_driver_register,
and make the ram_console probe function __devinit.

Change-Id: Ie02cebef90b9c9dbb5b94e52e4f93e490bb88954
Signed-off-by: Colin Cross <ccross@android.com>
drivers/staging/android/ram_console.c