aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2012-11-13 16:33:20 +0100
committerSimon Busch <morphis@gravedo.de>2012-11-14 06:57:15 +0100
commit9574ecec486a4ebd2be962838cad3fb1b91bb078 (patch)
tree5e4e91954fbebd3ae52b7a2a878117622aee0642 /samsung-ipc
parent314056af01c5dda6c6dbfd63021cd16e40282087 (diff)
downloadhardware_replicant_libsamsung-ipc-9574ecec486a4ebd2be962838cad3fb1b91bb078.tar.gz
hardware_replicant_libsamsung-ipc-9574ecec486a4ebd2be962838cad3fb1b91bb078.tar.bz2
hardware_replicant_libsamsung-ipc-9574ecec486a4ebd2be962838cad3fb1b91bb078.zip
Fix wrong device detection; we have to check for board_name instead of device name
Signed-off-by: Simon Busch <morphis@gravedo.de>
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index e8afd94..68e9ec9 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -115,7 +115,7 @@ int ipc_device_detect(void)
for (i=0 ; i < ipc_devices_count ; i++)
{
- if (strcmp(device, ipc_devices[i].name) == 0)
+ if (strstr(device, ipc_devices[i].board_name) != NULL)
{
if (ipc_devices[i].kernel_version != NULL)
{