summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-09-30 00:43:54 +0300
committerSudeep Holla <sudeep.holla@arm.com>2017-10-04 13:09:05 +0300
commit00126945902d2335c3b1f1c12db4ae2afeb4da0f (patch)
tree87178e20e2d0c290b343bc8d767bcd8c392e0876 /mm
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff)
downloadlinux-00126945902d2335c3b1f1c12db4ae2afeb4da0f.tar.xz
firmware: arm_scpi: remove usage of drvdata and don't reset scpi_info to null
There's no benefit using drvdata as variable scpi_info is global. Setting scpi_info to NULL in scpi_remove isn't needed too. If arm_scpi is built-in, then this code is never used. And if arm_scpi is built as a module and some other module calls get_scpi_ops() then due to this dependency scpi_remove is called only after the other module has been removed. Last but not least, users usually store the result of get_scpi_ops(), therefore setting scpi_info to NULL wouldn't really help. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> [sudeep.holla: reworded the commit log a bit] Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions