]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
greybus: vibrator: use the bundle struct device instead of the connector
authorGreg Kroah-Hartman <gregkh@google.com>
Wed, 14 Oct 2015 18:12:06 +0000 (11:12 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 15 Oct 2015 16:19:15 +0000 (09:19 -0700)
We are removing struct device from the gb_connection structure in the
near future.  The gb_bundle structure's struct device should be used as
a replacement.

This patch moves the vibrator driver to use the bundle pointer instead
of the connection pointer.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/vibrator.c

index 2b8032653f556ab925638d5ead4c8cd53b51a5e4..04737c80496dd95edaff0f0c376c6c437b98c6b3 100644 (file)
@@ -111,8 +111,8 @@ static int gb_vibrator_connection_init(struct gb_connection *connection)
                retval = vib->minor;
                goto error;
        }
-       dev = device_create(&vibrator_class, &connection->dev, MKDEV(0, 0), vib,
-                           "vibrator%d", vib->minor);
+       dev = device_create(&vibrator_class, &connection->bundle->dev,
+                           MKDEV(0, 0), vib, "vibrator%d", vib->minor);
        if (IS_ERR(dev)) {
                retval = -EINVAL;
                goto err_ida_remove;