]> git.baikalelectronics.ru Git - kernel.git/commit
of/selftest: Fix GPIOs selftest to cover the 7th case
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 12 Feb 2013 17:41:22 +0000 (17:41 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Feb 2013 10:05:57 +0000 (10:05 +0000)
commit803bbacfb53a2a0300bfd977eff2c754c826cff9
tree8514feeca617c2c608c18488791c47f7d02b0fa4
parentf38ff96247fad5f90d728920d00623244e6b6f3e
of/selftest: Fix GPIOs selftest to cover the 7th case

The of_gpio_named_count() self test doesn't hit the out-of-range
condition even though it is coded. Fix the bug by increasing the for
loop range by one.

Reported-by: Andreas Larsson <andreas@gaisler.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/selftest.c