[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1287771916-15016-8-git-send-email-gregkh@suse.de>
Date: Fri, 22 Oct 2010 11:24:53 -0700
From: Greg Kroah-Hartman <gregkh@...e.de>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...e.de>,
Masayuki Ohtake <masa-korg@....okisemi.com>
Subject: [PATCH 08/31] pch_phub: fix build warnings
This patch fixes up all of the build warnings for the pch_phub driver.
Cc: Masayuki Ohtake <masa-korg@....okisemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
drivers/misc/pch_phub.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c
index ed56e4f..744b804 100644
--- a/drivers/misc/pch_phub.c
+++ b/drivers/misc/pch_phub.c
@@ -546,7 +546,7 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
int retval;
int ret;
- unsigned int rom_size;
+ ssize_t rom_size;
struct pch_phub_reg *chip;
chip = kzalloc(sizeof(struct pch_phub_reg), GFP_KERNEL);
@@ -580,8 +580,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
goto err_pci_iomap;
}
dev_dbg(&pdev->dev, "%s : pci_iomap SUCCESS and value "
- "in pch_phub_base_address variable is 0x%08x\n", __func__,
- (unsigned int)chip->pch_phub_base_address);
+ "in pch_phub_base_address variable is %p\n", __func__,
+ chip->pch_phub_base_address);
chip->pch_phub_extrom_base_address = pci_map_rom(pdev, &rom_size);
if (chip->pch_phub_extrom_base_address == 0) {
@@ -591,8 +591,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
}
dev_dbg(&pdev->dev, "%s : "
"pci_map_rom SUCCESS and value in "
- "pch_phub_extrom_base_address variable is 0x%08x\n", __func__,
- (unsigned int)chip->pch_phub_extrom_base_address);
+ "pch_phub_extrom_base_address variable is %p\n", __func__,
+ chip->pch_phub_extrom_base_address);
pci_set_drvdata(pdev, chip);
--
1.7.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists