diff options
Diffstat (limited to 'drivers/video/tegra/host/t20/t20.c')
-rw-r--r-- | drivers/video/tegra/host/t20/t20.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/t20/t20.c b/drivers/video/tegra/host/t20/t20.c index 19967cb8c7a4..3f90e6a837c9 100644 --- a/drivers/video/tegra/host/t20/t20.c +++ b/drivers/video/tegra/host/t20/t20.c @@ -202,7 +202,7 @@ struct nvhost_device *t20_get_nvhost_device(struct nvhost_master *host, { int i; - for (i = 0; i < host->nb_channels; i++) { + for (i = 0; i < ARRAY_SIZE(t20_devices); i++) { if (strcmp(t20_devices[i].name, name) == 0) return &t20_devices[i]; } |