Skip to content

Commit

Permalink
pch_phub: fix build warnings
Browse files Browse the repository at this point in the history
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: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 22, 2010
1 parent cf4ece5 commit da0d7f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/misc/pch_phub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand All @@ -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);

Expand Down

0 comments on commit da0d7f9

Please sign in to comment.