]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: maps: plat-ram: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 7 May 2013 06:19:51 +0000 (15:19 +0900)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 19:59:29 +0000 (20:59 +0100)
commitb1eeebae4d39116e034acc28eb6c4312c243d921
treeb2562ae8e4ada1c2f2c01d290352d0eaa12cf166
parent8e42bdb2583715df7b2eb5999439bcc2f5a1a69c
mtd: maps: plat-ram: remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure, since commit bcb6fcf1119586a8b03889dfc51669b0ad6d4f95
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/plat-ram.c