soc: qcom: llcc: Move regmap config to local variable
authorStephen Boyd <swboyd@chromium.org>
Tue, 8 Oct 2019 23:45:05 +0000 (16:45 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 10 Oct 2019 03:56:41 +0000 (20:56 -0700)
commitacbf73bfa02881ba9e0532ba1a5f5beec573af9f
tree6ce174058b85c1ff4a677c046aa33386eec99bd3
parent2bfd3e7651addcaf48f12d4f11ea9d8fca6c3aa8
soc: qcom: llcc: Move regmap config to local variable

This is now a global variable that we're modifying to fix the name.
That isn't terribly thread safe and it's not necessary to be a global so
let's just move this to a local variable instead. This saves space in
the symtab and actually reduces kernel image size because the regmap
config is large and we can replace the initialization of that structure
with a memset and a few member assignments.

Cc: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/llcc-qcom.c