]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/unisys/visorchipset/visorchipset.h
Merge remote-tracking branch 'regulator/topic/core' into regulator-next
[karo-tx-linux.git] / drivers / staging / unisys / visorchipset / visorchipset.h
index d4bf203cdfdf53e36acee078b9c89a53c445862f..d95825dc541494d7af4ca1694bbca2748c4d7289 100644 (file)
@@ -104,9 +104,9 @@ finddevice(struct list_head *list, U32 busNo, U32 devNo)
 
 static inline void delbusdevices(struct list_head *list, U32 busNo)
 {
-       VISORCHIPSET_DEVICE_INFO *p;
+       VISORCHIPSET_DEVICE_INFO *p, *tmp;
 
-       list_for_each_entry(p, list, entry) {
+       list_for_each_entry_safe(p, tmp, list, entry) {
                if (p->busNo == busNo) {
                        list_del(&p->entry);
                        kfree(p);