From 0634874a584e8bd875a83850c656e5adefc53bde Mon Sep 17 00:00:00 2001 From: Vaibhav Agarwal Date: Wed, 4 May 2016 16:29:24 +0530 Subject: [PATCH] greybus: audio: Use standard API to set connections' private data Use standard API greybus_set_drvdata() while setting private data pointers for mgmt & data connection. Signed-off-by: Vaibhav Agarwal Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c index 27e5ff19dca6..d2dd5b82ce41 100644 --- a/drivers/staging/greybus/audio_module.c +++ b/drivers/staging/greybus/audio_module.c @@ -173,7 +173,7 @@ static int gb_audio_add_mgmt_connection(struct gbaudio_module_info *gbmodule, if (IS_ERR(connection)) return PTR_ERR(connection); - connection->private = gbmodule; + greybus_set_drvdata(bundle, gbmodule); gbmodule->mgmt_connection = connection; return 0; @@ -201,7 +201,7 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule, 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; -- 2.20.1