Re[2]: [PATCH v3 1/5] drivers: bus: imx-weim: Remove private driver data
Alexander Shiyan
shc_work at mail.ru
Mon Jun 24 03:00:46 EDT 2013
> On Sun, Jun 23, 2013 at 11:48:14AM +0400, Alexander Shiyan wrote:
> > Driver uses only probe function so no reason to keep variables
> > in private driver data.
> >
> > Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
> > ---
> > drivers/bus/imx-weim.c | 41 ++++++++++++++---------------------------
> > 1 file changed, 14 insertions(+), 27 deletions(-)
> >
> > diff --git a/drivers/bus/imx-weim.c b/drivers/bus/imx-weim.c
> > index 349f14e..0c0e6fe 100644
> > --- a/drivers/bus/imx-weim.c
> > +++ b/drivers/bus/imx-weim.c
> > @@ -12,11 +12,6 @@
> > #include <linux/io.h>
> > #include <linux/of_device.h>
> >
> > -struct imx_weim {
> > - void __iomem *base;
> > - struct clk *clk;
> > -};
>
> I don't know how others see it, but I would keep the private data now
> that it's there already. We don't know what it's good for in the future
> and it doesn't hurt.
>
> This is no strong opinion though since it always can be added back when
> it's really needed.
A possible case where private data can be used if we alter this driver to a real bus-driver.
In the current state, the data is not used.
Indeed, the code can be returned later, if it will needed.
Thanks.
---
More information about the linux-arm-kernel
mailing list