forked from Minki/linux
counter: ftm-quaddec: 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-3-u.kleine-koenig@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b56346ddbd
commit
8b2bc10ca2
@ -269,8 +269,6 @@ static int ftm_quaddec_probe(struct platform_device *pdev)
|
||||
if (!ftm)
|
||||
return -ENOMEM;
|
||||
|
||||
platform_set_drvdata(pdev, ftm);
|
||||
|
||||
io = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
if (!io) {
|
||||
dev_err(&pdev->dev, "Failed to get memory region\n");
|
||||
|
Loading…
Reference in New Issue
Block a user