Skip to content
Commit 3664ff82 authored by Yangtao Li's avatar Yangtao Li Committed by Mike Snitzer
Browse files

dm: add helper macro for simple DM target module init and exit



Eliminate duplicate boilerplate code for simple modules that contain
a single DM target driver without any additional setup code.

Add a new module_dm() macro, which replaces the module_init() and
module_exit() with template functions that call dm_register_target()
and dm_unregister_target() respectively.

Signed-off-by: default avatarYangtao Li <frank.li@vivo.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 306fbc2e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment