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>
This commit is contained in:
parent
04db334667
commit
5ae2f55b35
|
@ -111,8 +111,8 @@ static int gb_vibrator_connection_init(struct gb_connection *connection)
|
||||||
retval = vib->minor;
|
retval = vib->minor;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
dev = device_create(&vibrator_class, &connection->dev, MKDEV(0, 0), vib,
|
dev = device_create(&vibrator_class, &connection->bundle->dev,
|
||||||
"vibrator%d", vib->minor);
|
MKDEV(0, 0), vib, "vibrator%d", vib->minor);
|
||||||
if (IS_ERR(dev)) {
|
if (IS_ERR(dev)) {
|
||||||
retval = -EINVAL;
|
retval = -EINVAL;
|
||||||
goto err_ida_remove;
|
goto err_ida_remove;
|
||||||
|
|
Loading…
Reference in New Issue