commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=2937151ebf07106a849b59085a0704cb871158a0 branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/2012R1
Delete sport resoruces in platform shutdown function, otherwise ssm2603 is not probed after record or play audio and reboot. This is not a fix. Signed-off-by: Sonic Zhang <[email protected]> --- sound/soc/blackfin/bf6xx-i2s.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/sound/soc/blackfin/bf6xx-i2s.c b/sound/soc/blackfin/bf6xx-i2s.c index c3c2466..99f8739 100644 --- a/sound/soc/blackfin/bf6xx-i2s.c +++ b/sound/soc/blackfin/bf6xx-i2s.c @@ -218,9 +218,16 @@ static int __devexit bfin_i2s_remove(struct platform_device *pdev) return 0; } +static void bfin_i2s_shutdown(struct platform_device *pdev) +{ + struct sport_device *sport = platform_get_drvdata(pdev); + sport_delete(sport); +} + static struct platform_driver bfin_i2s_driver = { .probe = bfin_i2s_probe, .remove = __devexit_p(bfin_i2s_remove), + .shutdown = bfin_i2s_shutdown, .driver = { .name = "bfin-i2s", .owner = THIS_MODULE,
_______________________________________________ Linux-kernel-commits mailing list [email protected] https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
