Commit da0d7f98 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

pch_phub: fix build warnings

This patch fixes up all of the build warnings for the pch_phub driver.

Cc: Masayuki Ohtake <masa-korg@dsn.okisemi.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cf4ece53
...@@ -546,7 +546,7 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev, ...@@ -546,7 +546,7 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
int retval; int retval;
int ret; int ret;
unsigned int rom_size; ssize_t rom_size;
struct pch_phub_reg *chip; struct pch_phub_reg *chip;
chip = kzalloc(sizeof(struct pch_phub_reg), GFP_KERNEL); chip = kzalloc(sizeof(struct pch_phub_reg), GFP_KERNEL);
...@@ -580,8 +580,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev, ...@@ -580,8 +580,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
goto err_pci_iomap; goto err_pci_iomap;
} }
dev_dbg(&pdev->dev, "%s : pci_iomap SUCCESS and value " dev_dbg(&pdev->dev, "%s : pci_iomap SUCCESS and value "
"in pch_phub_base_address variable is 0x%08x\n", __func__, "in pch_phub_base_address variable is %p\n", __func__,
(unsigned int)chip->pch_phub_base_address); chip->pch_phub_base_address);
chip->pch_phub_extrom_base_address = pci_map_rom(pdev, &rom_size); chip->pch_phub_extrom_base_address = pci_map_rom(pdev, &rom_size);
if (chip->pch_phub_extrom_base_address == 0) { if (chip->pch_phub_extrom_base_address == 0) {
...@@ -591,8 +591,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev, ...@@ -591,8 +591,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
} }
dev_dbg(&pdev->dev, "%s : " dev_dbg(&pdev->dev, "%s : "
"pci_map_rom SUCCESS and value in " "pci_map_rom SUCCESS and value in "
"pch_phub_extrom_base_address variable is 0x%08x\n", __func__, "pch_phub_extrom_base_address variable is %p\n", __func__,
(unsigned int)chip->pch_phub_extrom_base_address); chip->pch_phub_extrom_base_address);
pci_set_drvdata(pdev, chip); pci_set_drvdata(pdev, chip);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment