rk_headset: Add support for driver to be built as module

Change-Id: Id85bea200c99a08f8a67bd9e3a6d0c929d974ba0
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2020-08-10 15:00:27 +08:00
committed by Tao Huang
parent 669923d002
commit bfadc5e3c3
3 changed files with 10 additions and 0 deletions

View File

@@ -450,3 +450,6 @@ failed:
dev_err(&pdev->dev, "failed to headset probe ret=%d\n", ret);
return ret;
}
EXPORT_SYMBOL_GPL(rk_headset_probe);
MODULE_LICENSE("GPL");

View File

@@ -471,6 +471,7 @@ failed:
dev_err(&pdev->dev, "failed headset adc probe ret=%d\n", ret);
return ret;
}
EXPORT_SYMBOL_GPL(rk_headset_adc_probe);
int rk_headset_adc_suspend(struct platform_device *pdev, pm_message_t state)
{
@@ -479,6 +480,7 @@ int rk_headset_adc_suspend(struct platform_device *pdev, pm_message_t state)
// del_timer(&headset_info->hook_timer);
return 0;
}
EXPORT_SYMBOL_GPL(rk_headset_adc_suspend);
int rk_headset_adc_resume(struct platform_device *pdev)
{
@@ -488,3 +490,6 @@ int rk_headset_adc_resume(struct platform_device *pdev)
// mod_timer(&headset_info->hook_timer, jiffies + msecs_to_jiffies(1500));
return 0;
}
EXPORT_SYMBOL_GPL(rk_headset_adc_resume);
MODULE_LICENSE("GPL");

View File

@@ -205,5 +205,7 @@ static void __exit rockchip_headset_exit(void)
platform_driver_unregister(&rockchip_headset_driver);
}
late_initcall(rockchip_headset_init);
module_exit(rockchip_headset_exit);
MODULE_DESCRIPTION("Rockchip Headset Core Driver");
MODULE_LICENSE("GPL");