forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
8 changed files
with
43 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]>"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters