Use standard API greybus_set_drvdata() while setting private
data pointers for mgmt & data connection.
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
if (IS_ERR(connection))
return PTR_ERR(connection);
- connection->private = gbmodule;
+ greybus_set_drvdata(bundle, gbmodule);
gbmodule->mgmt_connection = connection;
return 0;
return PTR_ERR(connection);
}
- connection->private = gbmodule;
+ greybus_set_drvdata(bundle, gbmodule);
/* dai->name should be same as codec->dai_name */
strlcpy(dai->name, "greybus-apb1", NAME_SIZE);
dai->data_cport = connection->intf_cport_id;