]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
coresight: cti: Allow cti to be built as a module
authorTingwei Zhang <tingwei@codeaurora.org>
Mon, 28 Sep 2020 16:35:09 +0000 (10:35 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Sep 2020 17:47:42 +0000 (19:47 +0200)
commit3c3fd1a14552cd9305737ab3d278d2df542a797e
tree619d155d91308bda5458750558a1c9dea40b4d83
parentf02b089e7bddd2f66e63f926960a4e384b1f436d
coresight: cti: Allow cti to be built as a module

Allow to build coresight-cti as a module, for ease of development.

- Kconfig becomes a tristate, to allow =m
- append -core to source file name to allow module to
  be called coresight-cti by the Makefile
- add an cti_remove function, for module unload
- add a MODULE_DEVICE_TABLE for autoloading on boot
- move cti_remove_conn_xrefs to cti_remove since all sysfs links
  have gone when system calls device_release.

Reviewed-by Mike Leach <mike.leach@linaro.org>

Tested-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Tingwei Zhang <tingwei@codeaurora.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200928163513.70169-22-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/Kconfig
drivers/hwtracing/coresight/Makefile
drivers/hwtracing/coresight/coresight-cti-core.c [new file with mode: 0644]
drivers/hwtracing/coresight/coresight-cti.c [deleted file]
drivers/hwtracing/coresight/coresight-platform.c
drivers/hwtracing/coresight/coresight.c