]> git.baikalelectronics.ru Git - kernel.git/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)
commit2ea371f990920d4b039911e4e0d7862694d0b3c7
treefd089569eb9c1c6c02ecc4ab13eea455e4f3e961
parenta556e9362a8a3730e202158fabc2d793f356ca37
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