]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: fix passing platform_data
authorMing Lei <tom.leiming@gmail.com>
Fri, 13 Mar 2009 15:06:59 +0000 (23:06 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:38:26 +0000 (16:38 -0700)
commit7dba5754ef995ab498b38ac8d60d7b253872f947
tree7b2152db4af5f8ca42180166ef336596d52f8dc0
parente40157f2619bcc93a9830e547e97514c6d8375c0
driver core: fix passing platform_data

We will remove platform_data field from struct device until
all platform devices pass its specific data from platfom_device
and all platform drivers use platform specific data passed by
platform_device->platform_data. This kind of conversion will
need a long time, for thousands of files is affected.

To make the conversion easily, we allow platform specific data
passed by struct device or struct platform_device and platform
driver may use it from struct device or struct platform_device.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c