p1022_ds.c (0588000eac9ba4178cebade437da3b28e8fad48f) | p1022_ds.c (a0a3d518c33853940936fae5ed579509fe5966eb) |
---|---|
1/** 2 * Freescale P1022DS ALSA SoC Machine driver 3 * 4 * Author: Timur Tabi <timur@freescale.com> 5 * 6 * Copyright 2010 Freescale Semiconductor, Inc. 7 * 8 * This file is licensed under the terms of the GNU General Public License --- 362 unchanged lines hidden (view full) --- 371 return ret; 372} 373 374/** 375 * p1022_ds_remove: remove the platform device 376 * 377 * This function is called when the platform device is removed. 378 */ | 1/** 2 * Freescale P1022DS ALSA SoC Machine driver 3 * 4 * Author: Timur Tabi <timur@freescale.com> 5 * 6 * Copyright 2010 Freescale Semiconductor, Inc. 7 * 8 * This file is licensed under the terms of the GNU General Public License --- 362 unchanged lines hidden (view full) --- 371 return ret; 372} 373 374/** 375 * p1022_ds_remove: remove the platform device 376 * 377 * This function is called when the platform device is removed. 378 */ |
379static int __devexit p1022_ds_remove(struct platform_device *pdev) | 379static int p1022_ds_remove(struct platform_device *pdev) |
380{ 381 struct snd_soc_card *card = platform_get_drvdata(pdev); 382 struct machine_data *mdata = 383 container_of(card, struct machine_data, card); 384 385 snd_soc_unregister_card(card); 386 kfree(mdata); 387 388 return 0; 389} 390 391static struct platform_driver p1022_ds_driver = { 392 .probe = p1022_ds_probe, | 380{ 381 struct snd_soc_card *card = platform_get_drvdata(pdev); 382 struct machine_data *mdata = 383 container_of(card, struct machine_data, card); 384 385 snd_soc_unregister_card(card); 386 kfree(mdata); 387 388 return 0; 389} 390 391static struct platform_driver p1022_ds_driver = { 392 .probe = p1022_ds_probe, |
393 .remove = __devexit_p(p1022_ds_remove), | 393 .remove = p1022_ds_remove, |
394 .driver = { 395 /* 396 * The name must match 'compatible' property in the device tree, 397 * in lowercase letters. 398 */ 399 .name = "snd-soc-p1022ds", 400 .owner = THIS_MODULE, 401 }, --- 41 unchanged lines hidden --- | 394 .driver = { 395 /* 396 * The name must match 'compatible' property in the device tree, 397 * in lowercase letters. 398 */ 399 .name = "snd-soc-p1022ds", 400 .owner = THIS_MODULE, 401 }, --- 41 unchanged lines hidden --- |