hwmon: qpnp-adc-current: Fix key not in data bug
The sysfs attribute is initialized properly, but the
initialization is overwritten by the memcpy directly following
that line. Do the initialization after the memcpy to avoid the
BUG: key eeb16158 not in .data!
warnings from lockdep.
Change-Id: Idb69bf631a684c689be5230200b5ab1341b4ec36
Signed-off-by:
Stephen Boyd <sboyd@codeaurora.org>
Loading
Please register or sign in to comment