]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: ti-st: remove st_get_plat_device
authorPavan Savoy <pavan_savoy@ti.com>
Thu, 19 Aug 2010 18:08:51 +0000 (14:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 22:11:20 +0000 (15:11 -0700)
commita38c6274227253162903d7207863d2bbe80d54f9
tree25359f4c1c050bf2419f5aa307018f7f804087ea
parent9caefc64233e3870c9ee0f6015d981f0c198aa09
Staging: ti-st: remove st_get_plat_device

In order to support multiple ST platform devices, a new symbol
'st_get_plat_device' earlier needed to be exported by the arch/XX/brd-XX.c
file which intends to add the ST platform device.

On removing this dependency, now inside ST driver maintain the array of
ST platform devices that would be registered.
As of now let id=0, as and when we end up having such platforms
where mutliple ST devices can exist, id would come from
protocol drivers (BT, FM and GPS) as to on which platform device
they want to register to.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ti-st/st.h
drivers/staging/ti-st/st_core.c
drivers/staging/ti-st/st_core.h
drivers/staging/ti-st/st_kim.c