Re: [PATCH] i2c: mux: Remove unneeded platform_set_drvdata to NULLin remove

From: Wolfram Sang
Date: Fri Feb 15 2013 - 14:37:46 EST

On Fri, Feb 15, 2013 at 10:41:22AM -0800, Doug Anderson wrote:
> Stephen Warren pointed out as part of a code review of another mux
> driver that there should be no need to have
> "platform_set_drvdata(pdev, NULL)" in the remove function. Get rid of
> it in the i2c-mux-gpio driver.
> See Stephen's comment at:
> Signed-off-by: Doug Anderson <dianders@xxxxxxxxxxxx>

I think we should do this at least I2C subsystem wide (51 occasions of
setting some *_drvdata to NULL), even better kernel-wide. Patching
individual drivers won't cut the confusion around this issue, I am



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at