Commit 96abfeca authored by Tuomas Tynkkynen's avatar Tuomas Tynkkynen Committed by Greg Kroah-Hartman

staging: vc04_services: Drop unused parameters from vchi_connect()

Remove two parameters which are never used and all where all callers
just pass in dummy values anyway.
Signed-off-by: default avatarTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Acked-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bc4ab85
...@@ -183,7 +183,7 @@ int bcm2835_new_vchi_ctx(struct device *dev, struct bcm2835_vchi_ctx *vchi_ctx) ...@@ -183,7 +183,7 @@ int bcm2835_new_vchi_ctx(struct device *dev, struct bcm2835_vchi_ctx *vchi_ctx)
return -EIO; return -EIO;
} }
ret = vchi_connect(NULL, 0, vchi_ctx->vchi_instance); ret = vchi_connect(vchi_ctx->vchi_instance);
if (ret) { if (ret) {
dev_dbg(dev, "failed to connect VCHI instance (ret=%d)\n", dev_dbg(dev, "failed to connect VCHI instance (ret=%d)\n",
ret); ret);
......
...@@ -1831,7 +1831,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance) ...@@ -1831,7 +1831,7 @@ int vchiq_mmal_init(struct vchiq_mmal_instance **out_instance)
return -EIO; return -EIO;
} }
status = vchi_connect(NULL, 0, vchi_instance); status = vchi_connect(vchi_instance);
if (status) { if (status) {
pr_err("Failed to connect VCHI instance (status=%d)\n", status); pr_err("Failed to connect VCHI instance (status=%d)\n", status);
return -EIO; return -EIO;
......
...@@ -100,9 +100,7 @@ extern int32_t vchi_initialise(VCHI_INSTANCE_T *instance_handle); ...@@ -100,9 +100,7 @@ extern int32_t vchi_initialise(VCHI_INSTANCE_T *instance_handle);
extern int32_t vchi_exit(void); extern int32_t vchi_exit(void);
extern int32_t vchi_connect(VCHI_CONNECTION_T **connections, extern int32_t vchi_connect(VCHI_INSTANCE_T instance_handle);
const uint32_t num_connections,
VCHI_INSTANCE_T instance_handle);
//When this is called, ensure that all services have no data pending. //When this is called, ensure that all services have no data pending.
//Bulk transfers can remain 'queued' //Bulk transfers can remain 'queued'
......
...@@ -490,9 +490,7 @@ EXPORT_SYMBOL(vchi_initialise); ...@@ -490,9 +490,7 @@ EXPORT_SYMBOL(vchi_initialise);
/*********************************************************** /***********************************************************
* Name: vchi_connect * Name: vchi_connect
* *
* Arguments: VCHI_CONNECTION_T **connections * Arguments: VCHI_INSTANCE_T instance_handle
* const uint32_t num_connections
* VCHI_INSTANCE_T instance_handle)
* *
* Description: Starts the command service on each connection, * Description: Starts the command service on each connection,
* causing INIT messages to be pinged back and forth * causing INIT messages to be pinged back and forth
...@@ -500,15 +498,10 @@ EXPORT_SYMBOL(vchi_initialise); ...@@ -500,15 +498,10 @@ EXPORT_SYMBOL(vchi_initialise);
* Returns: 0 if successful, failure otherwise * Returns: 0 if successful, failure otherwise
* *
***********************************************************/ ***********************************************************/
int32_t vchi_connect(VCHI_CONNECTION_T **connections, int32_t vchi_connect(VCHI_INSTANCE_T instance_handle)
const uint32_t num_connections,
VCHI_INSTANCE_T instance_handle)
{ {
VCHIQ_INSTANCE_T instance = (VCHIQ_INSTANCE_T)instance_handle; VCHIQ_INSTANCE_T instance = (VCHIQ_INSTANCE_T)instance_handle;
(void)connections;
(void)num_connections;
return vchiq_connect(instance); return vchiq_connect(instance);
} }
EXPORT_SYMBOL(vchi_connect); EXPORT_SYMBOL(vchi_connect);
......
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