Skip to content

Commit da0d7f9

Browse files
committed
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: Greg Kroah-Hartman <gregkh@suse.de>
1 parent cf4ece5 commit da0d7f9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/misc/pch_phub.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
546546
int retval;
547547

548548
int ret;
549-
unsigned int rom_size;
549+
ssize_t rom_size;
550550
struct pch_phub_reg *chip;
551551

552552
chip = kzalloc(sizeof(struct pch_phub_reg), GFP_KERNEL);
@@ -580,8 +580,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
580580
goto err_pci_iomap;
581581
}
582582
dev_dbg(&pdev->dev, "%s : pci_iomap SUCCESS and value "
583-
"in pch_phub_base_address variable is 0x%08x\n", __func__,
584-
(unsigned int)chip->pch_phub_base_address);
583+
"in pch_phub_base_address variable is %p\n", __func__,
584+
chip->pch_phub_base_address);
585585
chip->pch_phub_extrom_base_address = pci_map_rom(pdev, &rom_size);
586586

587587
if (chip->pch_phub_extrom_base_address == 0) {
@@ -591,8 +591,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
591591
}
592592
dev_dbg(&pdev->dev, "%s : "
593593
"pci_map_rom SUCCESS and value in "
594-
"pch_phub_extrom_base_address variable is 0x%08x\n", __func__,
595-
(unsigned int)chip->pch_phub_extrom_base_address);
594+
"pch_phub_extrom_base_address variable is %p\n", __func__,
595+
chip->pch_phub_extrom_base_address);
596596

597597
pci_set_drvdata(pdev, chip);
598598

0 commit comments

Comments
 (0)