counter: microchip-tcb-capture: Drop unused platform_set_drvdata()

The driver doesn't ever use platform_get_drvdata, so drop this unused
call.

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-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Uwe Kleine-König 2021-12-30 16:02:40 +01:00 коммит произвёл Greg Kroah-Hartman
Родитель 8b2bc10ca2
Коммит 0880603c84
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -307,8 +307,6 @@ static int mchp_tc_probe(struct platform_device *pdev)
if (!priv) if (!priv)
return -ENOMEM; return -ENOMEM;
platform_set_drvdata(pdev, priv);
match = of_match_node(atmel_tc_of_match, np->parent); match = of_match_node(atmel_tc_of_match, np->parent);
tcb_config = match->data; tcb_config = match->data;
if (!tcb_config) { if (!tcb_config) {