Commit 29a167ec authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: raw: 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 raw driver to use the bundle pointer instead of the
connection pointer.
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
parent defa37ea
......@@ -176,8 +176,8 @@ static int gb_raw_connection_init(struct gb_connection *connection)
if (retval)
goto error_cdev;
raw->device = device_create(raw_class, &connection->dev, raw->dev, raw,
"gb!raw%d", minor);
raw->device = device_create(raw_class, &connection->bundle->dev,
raw->dev, raw, "gb!raw%d", minor);
if (IS_ERR(raw->device)) {
retval = PTR_ERR(raw->device);
goto error_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment