[PATCH 2/2] firmware loader: use vcoalesce for NOMMU

From: Mike Frysinger
Date: Wed Jan 12 2011 - 00:00:44 EST


NOMMU parts can't support vmap, so use vcoalesce instead.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
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 40af43e..ab1488d 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -248,7 +248,7 @@ static ssize_t firmware_loading_store(struct device *dev,
case 0:
if (test_bit(FW_STATUS_LOADING, &fw_priv->status)) {
vunmap(fw_priv->fw->data);
- fw_priv->fw->data = vmap(fw_priv->pages,
+ fw_priv->fw->data = vcoalesce(fw_priv->pages,
fw_priv->nr_pages,
0, PAGE_KERNEL_RO);
if (!fw_priv->fw->data) {
--
1.7.4.rc1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/