diff options
author | Mayuresh Kulkarni <mkulkarni@nvidia.com> | 2012-07-24 12:47:24 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-02 09:37:17 -0700 |
commit | ece74a0888415460a005d52bcf2d5f6cf535597d (patch) | |
tree | 1e6c6da33139bca2fe9770a2816f827f81f93840 /drivers/video/tegra/host | |
parent | 940211c305fe0bed54b19847633800b77c369a46 (diff) |
video: tegra: host: use strcmp in nvhost_bus_match
- replace the usage of strncmp with strcmp in
nvhost_bus_match()
- strncmp was needed when we had device name as
<name.ip-version>. but now the device name is <name>
which matches with the driver name.
- multiple devices get bind with the same driver using
id_table which uses .version field as an index in id_table
Change-Id: If0b6f0ee18626d5e7ff801b8515ef5168069c3f2
Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-on: http://git-master/r/117953
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host')
-rw-r--r-- | drivers/video/tegra/host/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/bus.c b/drivers/video/tegra/host/bus.c index 758a5ca4ad94..f22dac288051 100644 --- a/drivers/video/tegra/host/bus.c +++ b/drivers/video/tegra/host/bus.c @@ -96,7 +96,7 @@ static int nvhost_bus_match(struct device *_dev, struct device_driver *drv) if (ndrv->id_table) return nvhost_bus_match_id(dev, ndrv->id_table) != NULL; else /* driver does not support id_table */ - return !strncmp(dev->name, drv->name, strlen(drv->name)); + return !strcmp(dev->name, drv->name); } static int nvhost_drv_probe(struct device *_dev) |