]> git.baikalelectronics.ru Git - kernel.git/commit
counter: microchip-tcb-capture: check the correct variable
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 27 Jul 2020 11:23:16 +0000 (14:23 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Aug 2020 10:38:42 +0000 (11:38 +0100)
commitdb0054d1910c9e078bddb81b66759295b8003b04
treea4ffcfc49a82aa512deb53d9324262456b42cd45
parent6421bbfb8b193d3621dbeb0de6d61f1b94713e37
counter: microchip-tcb-capture: check the correct variable

This should be testing "regmap" instead of "priv->regmap".  The
"priv->regmap" variable is always zero so it's not an error pointer.

Fixes: 105615d1c782 ("counter: Add microchip TCB capture counter")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/counter/microchip-tcb-capture.c