staging: ti-st: fix kim platform device id
authorPavan Savoy <pavan_savoy@ti.com>
Fri, 10 Sep 2010 19:58:55 +0000 (15:58 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Sep 2010 19:54:45 +0000 (12:54 -0700)
commitdfb7ef7d84fa45270b0138dbe6ab4316b03cc724
tree82bff2fedc12739dcb87c8e10fa4b2b675ac8a7f
parent48c51a8cf484c8d569f97050bbac493c5bc79c2f
staging: ti-st: fix kim platform device id

Platform devices tend to have id as -1 when only 1 device exist and
a value >=0 when multiple devices exist, since we plan to store all
these platform devices if multiple exist, there was a requirement to
have id to be >=0.
The patch fixes this problem.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ti-st/st_kim.c