diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-07-01 15:13:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-08 18:27:04 -0400 |
commit | a76040d835776f0e8cc2bf5f9edcfa2092449ae9 (patch) | |
tree | 8cd89d645c010b617f6001b687c9cde6afe4dfc2 | |
parent | 6af6b163b3191bd2802868f17d4843c58bc4046f (diff) |
firmware: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
use mm.h definition
Cc: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/firmware_class.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
712 | static int fw_realloc_buffer(struct firmware_priv *fw_priv, int min_size) | 712 | static int fw_realloc_buffer(struct firmware_priv *fw_priv, int min_size) |
713 | { | 713 | { |
714 | struct firmware_buf *buf = fw_priv->buf; | 714 | struct firmware_buf *buf = fw_priv->buf; |
715 | int pages_needed = ALIGN(min_size, PAGE_SIZE) >> PAGE_SHIFT; | 715 | int pages_needed = PAGE_ALIGN(min_size) >> PAGE_SHIFT; |
716 | 716 | ||
717 | /* If the array of pages is too small, grow it... */ | 717 | /* If the array of pages is too small, grow it... */ |
718 | if (buf->page_array_size < pages_needed) { | 718 | if (buf->page_array_size < pages_needed) { |