summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/gbphy.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-05-30 11:31:53 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-31 22:02:58 -0700
commit64060fe95458f22bac7327b2ee8dc5ce9e488d44 (patch)
treeb17a641e46226ed8a4635963964ccae6f609938e /drivers/staging/greybus/gbphy.c
parent5e569115e9b9d4af631589b9d9cc5227a660b008 (diff)
downloadlinux-64060fe95458f22bac7327b2ee8dc5ce9e488d44.tar.bz2
greybus: gbphy: Remove protocol specific version handling
We should be using the generic version handling at bundle level, instead of at protocol level for bridged PHY devices as well. The bundle version handling is already in place, though it is *not* used today as we haven't bumped the version of control protocol yet. Remove protocol specific handling for bridged PHY devices. Tested on EVT 1.5 with gpbridge-test module. No nuttx changes are required with this. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/gbphy.c')
-rw-r--r--drivers/staging/greybus/gbphy.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c
index c11a1368d073..2727e4afcf4c 100644
--- a/drivers/staging/greybus/gbphy.c
+++ b/drivers/staging/greybus/gbphy.c
@@ -171,33 +171,6 @@ void gb_gbphy_deregister_driver(struct gbphy_driver *driver)
}
EXPORT_SYMBOL_GPL(gb_gbphy_deregister_driver);
-int gb_gbphy_get_version(struct gb_connection *connection)
-{
- struct gb_protocol_version_request request;
- struct gb_protocol_version_response response;
- int retval;
-
- request.major = 1;
- request.minor = 0;
-
- retval = gb_operation_sync(connection, GB_REQUEST_TYPE_PROTOCOL_VERSION,
- &request, sizeof(request), &response,
- sizeof(response));
- if (retval)
- return retval;
-
- /* FIXME - do proper version negotiation here someday... */
-
- connection->module_major = response.major;
- connection->module_minor = response.minor;
-
- dev_dbg(&connection->hd->dev, "%s: v%u.%u\n", connection->name,
- response.major, response.minor);
-
- return 0;
-}
-EXPORT_SYMBOL_GPL(gb_gbphy_get_version);
-
static struct gbphy_device *gb_gbphy_create_dev(struct gb_bundle *bundle,
struct greybus_descriptor_cport *cport_desc)
{