memory: mtk-smi: Allow building as module

Add support for building the SMI driver as module. Switch MTK_SMI to
tristate, and add module_exit/module_license.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20210126060055.11050-1-yong.wu@mediatek.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:
Yong Wu 2021-01-26 14:00:55 +08:00 • committed by Krzysztof Kozlowski
commit 50fc8d9232
3 changed files with 11 additions and 2 deletions