summaryrefslogtreecommitdiff
path: root/drivers/spi/amba-pl022.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2011-02-02 22:01:21 +0300
committerGrant Likely <grant.likely@secretlab.ca>2011-02-15 23:25:36 +0300
commit0f3e1d27a7e3f98d996d707d649128e229b65deb (patch)
tree0d5aacf251ae6ee733dcce5b2310e2d1128e7194 /drivers/spi/amba-pl022.c
parentc170093d31bd4e3bc51881cc0f123beeca7872c9 (diff)
downloadlinux-0f3e1d27a7e3f98d996d707d649128e229b65deb.tar.xz
spi/pxa2xx pci: fix the release - remove race
Right now the platform device and its platform data is included in one big struct which requires its custom ->release function. The problem with the release function within the driver is that it might be called after the driver was removed because someone was holding a reference to it and it was not called right after platform_device_unregister(). So we also free the platform device memory to which one might hold a reference. This patch uses the normal pdev functions so this kind of race does not occur. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/amba-pl022.c')
0 files changed, 0 insertions, 0 deletions