]> 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>
Fri, 24 Sep 2010 18:04:32 +0000 (11:04 -0700)
commit4a5f6341a9333987f1642c240e20994d4b5c9cf1
treefbb64f956ab824bc4a47676543bb54d109268ca0
parent80db513ab2c2f3aaec269a6c1014361ffd96fc15
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