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

edac: Remove redundant platform_set_drvdata()

Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>

authored by

Sachin Kamat and committed by
Chris Metcalf
8e42e211 cf3a13d7

-1
-1
drivers/edac/tile_edac.c
··· 257 257 if (!pdev) 258 258 continue; 259 259 260 - platform_set_drvdata(pdev, NULL); 261 260 platform_device_unregister(pdev); 262 261 } 263 262 platform_driver_unregister(&tile_edac_mc_driver);