提交 a5d3f6ab 编写于 作者: A Alexander Shiyan 提交者: Mark Brown

ASoC: mc13783: Use module_platform_driver_probe()

mc13783-codec is probed only by MC13XXX MFD core driver so
use module_platform_driver_probe().
Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 6ce4eac1
......@@ -750,7 +750,7 @@ static struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
.num_dapm_routes = ARRAY_SIZE(mc13783_routes),
};
static int mc13783_codec_probe(struct platform_device *pdev)
static int __init mc13783_codec_probe(struct platform_device *pdev)
{
struct mc13xxx *mc13xxx;
struct mc13783_priv *priv;
......@@ -804,11 +804,9 @@ static struct platform_driver mc13783_codec_driver = {
.name = "mc13783-codec",
.owner = THIS_MODULE,
},
.probe = mc13783_codec_probe,
.remove = mc13783_codec_remove,
};
module_platform_driver(mc13783_codec_driver);
module_platform_driver_probe(mc13783_codec_driver, mc13783_codec_probe);
MODULE_DESCRIPTION("ASoC MC13783 driver");
MODULE_AUTHOR("Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册