Commit 70281592 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Helge Deller
Browse files

fbdev: xilinxfb: Make xilinxfb_release() return void



The function xilinxfb_release() returns zero unconditionally. Make it
return void. There is no semantic change, the only effect is that it
becomes obvious that the driver's .remove() callback always returns zero.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent a4f7fcd7
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -376,7 +376,7 @@ static int xilinxfb_assign(struct platform_device *pdev,
	return rc;
	return rc;
}
}


static int xilinxfb_release(struct device *dev)
static void xilinxfb_release(struct device *dev)
{
{
	struct xilinxfb_drvdata *drvdata = dev_get_drvdata(dev);
	struct xilinxfb_drvdata *drvdata = dev_get_drvdata(dev);


@@ -402,8 +402,6 @@ static int xilinxfb_release(struct device *dev)
	if (!(drvdata->flags & BUS_ACCESS_FLAG))
	if (!(drvdata->flags & BUS_ACCESS_FLAG))
		dcr_unmap(drvdata->dcr_host, drvdata->dcr_len);
		dcr_unmap(drvdata->dcr_host, drvdata->dcr_len);
#endif
#endif

	return 0;
}
}


/* ---------------------------------------------------------------------
/* ---------------------------------------------------------------------
@@ -480,7 +478,9 @@ static int xilinxfb_of_probe(struct platform_device *pdev)


static int xilinxfb_of_remove(struct platform_device *op)
static int xilinxfb_of_remove(struct platform_device *op)
{
{
	return xilinxfb_release(&op->dev);
	xilinxfb_release(&op->dev);

	return 0;
}
}


/* Match table for of_platform binding */
/* Match table for of_platform binding */