]> Pileus Git - ~andy/linux/commit
spi-topcliff-pch: fix to use list_for_each_entry_safe() when delete list items
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 27 Apr 2013 06:06:00 +0000 (14:06 +0800)
committerMark Brown <broonie@sirena.org.uk>
Sun, 28 Apr 2013 01:18:13 +0000 (02:18 +0100)
commitcd8d984f0def2a8c5733a9468634ec3e0feec03d
treefd089569eb9c1c6c02ecc4ab13eea455e4f3e961
parent0113f22ee49ff1972de55632dda44eb9299e625d
spi-topcliff-pch: fix to use list_for_each_entry_safe() when delete list items

Since we will remove items off the list using list_del_init() we need
to use a safe version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@sirena.org.uk>
drivers/spi/spi-topcliff-pch.c