From: Fabian Frederick Date: Tue, 1 Jul 2014 19:13:30 +0000 (+0200) Subject: firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a76040d835776f0e8cc2bf5f9edcfa2092449ae9;p=linux-beck.git firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN use mm.h definition Cc: Ming Lei Signed-off-by: Fabian Frederick Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c index 304691c5e2bc..28bc6db9fbf4 100644 --- a/drivers/base/firmware_class.c +++ b/drivers/base/firmware_class.c @@ -712,7 +712,7 @@ out: static int fw_realloc_buffer(struct firmware_priv *fw_priv, int min_size) { struct firmware_buf *buf = fw_priv->buf; - int pages_needed = ALIGN(min_size, PAGE_SIZE) >> PAGE_SHIFT; + int pages_needed = PAGE_ALIGN(min_size) >> PAGE_SHIFT; /* If the array of pages is too small, grow it... */ if (buf->page_array_size < pages_needed) {