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)
commitab3300deff6a81cc10887437383fc8a63884c3f9
treea4ffcfc49a82aa512deb53d9324262456b42cd45
parent336306790b2bbf7ce837625fa3b24ba724d05838
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: 106b104137fd ("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