]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Samsung: set drvdata before adding secondary device
authorPrathyush K <prathyush.k@samsung.com>
Tue, 2 Apr 2013 11:23:02 +0000 (16:53 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 3 Apr 2013 16:56:44 +0000 (17:56 +0100)
commitabf30e53b951e529047a97ba91ebee484fce99a6
tree645e8062960737509820ff14cbbaf3be766b8f6b
parent43c1f79ef18479154ec61ad8da19728ea8a0a1b9
ASoC: Samsung: set drvdata before adding secondary device

Currently, a new platform device is created for secondary device
by calling platform_device_register_resndata and then the drvdata
is set for this device.

The following patch has been added to driver core:
"driver core: fix possible missing of device probe".

This results in the added device getting probed immediately but
the drvdata for the secondary device is not yet set.
This patch removes the platform_device_register_resndata call and
instead calls platform_device_alloc, platform_set_drvdata and
platform_device_add which fixes the above issue.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/samsung/i2s.c