]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: gpbridge: make gpbridge device ids start with 1
authorSandeep Patil <sspatil@google.com>
Fri, 13 May 2016 18:51:04 +0000 (11:51 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 14 May 2016 09:19:41 +0000 (11:19 +0200)
Making gpb device ids consistent with all other devices on
greybus

Testing Done:
Tested using gpb module to make sure the first gpbX/ device
starts with 1.

Signed-off-by: Sandeep Patil <sspatil@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/gpbridge.c

index 82fbf26bc78b4b99043f1ddce0528f24bf02f8fc..b22f5e452e9dd9df4362d92027de55f041a9bf74 100644 (file)
@@ -178,7 +178,7 @@ static struct gpbridge_device *gb_gpbridge_create_dev(struct gb_bundle *bundle,
        int retval;
        int id;
 
-       id = ida_simple_get(&gpbridge_id, 0, 0, GFP_KERNEL);
+       id = ida_simple_get(&gpbridge_id, 1, 0, GFP_KERNEL);
        if (id < 0)
                return ERR_PTR(id);