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>
Fri, 24 Sep 2010 18:04:32 +0000 (11:04 -0700)
commitd3654cd29e676cd3a2622aec926b0b56fa444714
treefbb64f956ab824bc4a47676543bb54d109268ca0
parenta850ea30374ebed32a0724742601861853fde869
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>
Cc: Anca Emanuel <anca.emanuel@gmail.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