summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/vibrator.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-10-14 11:12:06 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-10-15 09:19:15 -0700
commit5ae2f55b3571408caa6ee0dc908dc60131da7cf6 (patch)
treec6e0ba701d73346460f79a6962becea501cb2c32 /drivers/staging/greybus/vibrator.c
parent04db334667b167b6f7c64e791defcb1bc61cfd3a (diff)
greybus: vibrator: use the bundle struct device instead of the connector
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>
Diffstat (limited to 'drivers/staging/greybus/vibrator.c')
-rw-r--r--drivers/staging/greybus/vibrator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/vibrator.c b/drivers/staging/greybus/vibrator.c
index 2b8032653f55..04737c80496d 100644
--- a/drivers/staging/greybus/vibrator.c
+++ b/drivers/staging/greybus/vibrator.c
@@ -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;