dt/sound: Eliminate users of of_platform_{,un}register_driver
Get rid of users of of_platform_driver in drivers/sound. The of_platform_{,un}register_driver functions are going away, so the users need to be converted to using the platform_bus_type directly. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -368,8 +368,7 @@ static struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
|
||||
.pcm_free = &psc_dma_free,
|
||||
};
|
||||
|
||||
static int mpc5200_hpcd_probe(struct of_device *op,
|
||||
const struct of_device_id *match)
|
||||
static int mpc5200_hpcd_probe(struct of_device *op)
|
||||
{
|
||||
phys_addr_t fifo;
|
||||
struct psc_dma *psc_dma;
|
||||
@@ -511,32 +510,31 @@ static int mpc5200_hpcd_remove(struct of_device *op)
|
||||
}
|
||||
|
||||
static struct of_device_id mpc5200_hpcd_match[] = {
|
||||
{
|
||||
.compatible = "fsl,mpc5200-pcm",
|
||||
},
|
||||
{ .compatible = "fsl,mpc5200-pcm", },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, mpc5200_hpcd_match);
|
||||
|
||||
static struct of_platform_driver mpc5200_hpcd_of_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "mpc5200-pcm-audio",
|
||||
.match_table = mpc5200_hpcd_match,
|
||||
static struct platform_driver mpc5200_hpcd_of_driver = {
|
||||
.probe = mpc5200_hpcd_probe,
|
||||
.remove = mpc5200_hpcd_remove,
|
||||
.dev = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "mpc5200-pcm-audio",
|
||||
.of_match_table = mpc5200_hpcd_match,
|
||||
}
|
||||
};
|
||||
|
||||
static int __init mpc5200_hpcd_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&mpc5200_hpcd_of_driver);
|
||||
return platform_driver_register(&mpc5200_hpcd_of_driver);
|
||||
}
|
||||
module_init(mpc5200_hpcd_init);
|
||||
|
||||
static void __exit mpc5200_hpcd_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&mpc5200_hpcd_of_driver);
|
||||
platform_driver_unregister(&mpc5200_hpcd_of_driver);
|
||||
}
|
||||
|
||||
module_init(mpc5200_hpcd_init);
|
||||
module_exit(mpc5200_hpcd_exit);
|
||||
|
||||
MODULE_AUTHOR("Grant Likely <grant.likely@secretlab.ca>");
|
||||
|
Reference in New Issue
Block a user