mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user