]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/resource.c
mmc: properly iterate over sg list in debug check
[linux-2.6-omap-h63xx.git] / kernel / resource.c
index 74af2d7cb5a135ffa1da4c52ce9af026c527044d..f5b518eabefec5cfe880c230fe07ce7b8615f732 100644 (file)
@@ -490,7 +490,7 @@ resource_size_t resource_alignment(struct resource *res)
 {
        switch (res->flags & (IORESOURCE_SIZEALIGN | IORESOURCE_STARTALIGN)) {
        case IORESOURCE_SIZEALIGN:
-               return res->end - res->start + 1;
+               return resource_size(res);
        case IORESOURCE_STARTALIGN:
                return res->start;
        default: