]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: google: memconsole: Use devm_memremap()
authorStephen Boyd <swboyd@chromium.org>
Fri, 10 May 2019 21:24:53 +0000 (14:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2019 18:55:04 +0000 (20:55 +0200)
commitb0503584a82814c05951b792d0177e052da2db6f
tree4aa7655c7a1e5e2a81fe9fec978766c22ae7beb6
parent354635039d935dba16ba35054b27dd6671fd3d14
firmware: google: memconsole: Use devm_memremap()

Use the devm version of memremap so that we can delete the unmapping
code in driver remove, but more importantly so that we can unmap this
memory region if memconsole_sysfs_init() errors out for some reason.

Cc: Wei-Ning Huang <wnhuang@chromium.org>
Cc: Julius Werner <jwerner@chromium.org>
Cc: Brian Norris <briannorris@chromium.org>
Cc: Samuel Holland <samuel@sholland.org>
Cc: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/google/memconsole-coreboot.c