aries | p1: staging: android: squashed commits for ram console

Fix ram console driver

Revert "Revert "staging: android: ram_console: honor dmesg_restrict""

This reverts commit b67b735f53f5b1b153188ae57880d43d1e8fc377.

Revert "persistent_ram: Fix buffer size clamping during writes"

This reverts commit d7c4ea24dbe04c621c0f10be0cab238e5f9177c6.

Revert "android: persistent_ram: Allow specifying ecc parameters in platform data"

This reverts commit 4de04f8991ceb97a883344f9e4f22769a1e58c3f.

Revert "android: persistent_ram: Include ecc_size when calculating ecc_block"

This reverts commit b3054f5a11130f7e527052687b50f1d2dc02f81c.

Revert "android: ram_console: use platform_device_register"

This reverts commit 2296d7c2d0fd29357937bbdddd744c142c8739e5.

Revert "staging: android: fix mem leaks in __persistent_ram_init()"

This reverts commit be666cf68f3620b1a1dcbd36cb26e218825d2497.

Revert "android: make persistent_ram based drivers depend on HAVE_MEMBLOCK"

This reverts commit 90aeefcddadf931bb04964a4ff75dcc11e9c2395.

Revert "android: persistent_ram: move persistent_ram.h back to include/linux"

This reverts commit 70ff87db6108ffca2feefed88ec584734c028949.

Revert "android: persistent_ram: fix printk size_t warning"

This reverts commit 97cc280e06640516f6f95cb5cbf700b262e3825a.

Revert "android: persistent_trace: fix section mismatch warning"

This reverts commit 0fc8317ccf0fb5116c39d2b1d5b726f891a7ef45.

Revert "android: persistent_ram: fix section mismatch in clients"

This reverts commit b9a5ad6d975a237758f6689b2cc7a02089c05e21.

Revert "android: persistent_trace: ftrace into persistent_ram"

This reverts commit 5a4a85a5c0258dae4695cea20f7981b617583fcb.

Conflicts:
	drivers/staging/android/Makefile

Revert "Staging: android: ram_console.c:"

This reverts commit cf9962a74fc58e948e5c622ff05c0aa89e2933e4.

Revert "staging: ram_console: Fix section mismatches"

This reverts commit e082be20f0d6bd0514e970383ac24781902cb3a0.

Revert "staging: android: ram_console: honor dmesg_restrict"

This reverts commit c6ee022c93ab62d63bfe88fccc3bdbb06641fc85.

Revert "staging: android: ram_console: fix crash in ram_console_late_init"

This reverts commit 3e5b951e0976781c1564ff5d712d436197262ba7.

Revert "staging: android: persistent_ram: add notrace to persistent_ram_write"

This reverts commit 0ae53a57502c327156c2abfb29d5877a4cf3c014.

Revert "staging: android: persistent_ram: make persistent_ram_write atomic"

This reverts commit 3595e0b2fe7171e09c94cd505560e88baaeb513d.

Revert "staging: android: persistent_ram: handle reserving and mapping memory"

This reverts commit d50c0765034c46f4d1f61eb20127611e14fdb620.

Revert "staging: android: persistent_ram: refactor ecc support"

This reverts commit 48d79adb00e2a07c2d1e4ace14139bc7d7b64803.

Revert "staging: android: ram_console: split out persistent ram"

This reverts commit ff2bd2ac26346f517f3817cd95fb1bfc4ed922f0.

Revert "staging: android: ram_console: drop verbose ram_console support"

This reverts commit ef8e4e20abaab2dbab9300ecb70195a33f0e7d93.

Revert "staging: android: ram_console: drop early buffer support"

This reverts commit 28fde660b2e9c73acdfd53ce8aacd239bb1047d1.

Revert "staging: android: ram_console: move footer strings"

This reverts commit b4de4a2ab603c4afba280f80914b34aa48d2e877.

Revert "Staging: android: ram_console: Use resource_size function"

This reverts commit 31aceb4f344ec880b9145daf5c5775b9c888aef3.

Revert "staging: android: ram_console use kmemdup instead of kmalloc"

This reverts commit f8970276d4356cdf5258ee1ce04b7d672a9f8df3.

Revert "staging: android/ram_console: Don't build on arches w/o ioremap"

This reverts commit 8ae77d1e8f17e0e2311057fe7dffe78061804048.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I4c3e0c46bbd525fe3bc7e163ac00477f08078311