counter: interrupt-cnt: Convert to new counter registration
This fixes device lifetime issues where it was possible to free a live struct device. Fixes: a55ebd47 ("counter: add IRQ or GPIO based counter") Reviewed-by:Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by:
William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by:
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20211230150300.72196-17-u.kleine-koenig@pengutronix.de Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please register or sign in to comment