Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mailbox: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Jingoo Han and committed by
Tony Lindgren
d287c1d0 f70bf2a3

-1
-1
drivers/mailbox/mailbox-omap2.c
··· 325 325 kfree(privblk); 326 326 kfree(mboxblk); 327 327 kfree(list); 328 - platform_set_drvdata(pdev, NULL); 329 328 330 329 return 0; 331 330 }