]> 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)
commite4bf17aa6a1e0a7f380f9cc2707df27bb2273695
treefd089569eb9c1c6c02ecc4ab13eea455e4f3e961
parente42c67dfd3ba7ff968648879a37e1b069c3c9dfa
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