aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/pch_phub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c
index ed56e4f91fa0..744b804aca15 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,
546 int retval; 546 int retval;
547 547
548 int ret; 548 int ret;
549 unsigned int rom_size; 549 ssize_t rom_size;
550 struct pch_phub_reg *chip; 550 struct pch_phub_reg *chip;
551 551
552 chip = kzalloc(sizeof(struct pch_phub_reg), GFP_KERNEL); 552 chip = kzalloc(sizeof(struct pch_phub_reg), GFP_KERNEL);
@@ -580,8 +580,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
580 goto err_pci_iomap; 580 goto err_pci_iomap;
581 } 581 }
582 dev_dbg(&pdev->dev, "%s : pci_iomap SUCCESS and value " 582 dev_dbg(&pdev->dev, "%s : pci_iomap SUCCESS and value "
583 "in pch_phub_base_address variable is 0x%08x\n", __func__, 583 "in pch_phub_base_address variable is %p\n", __func__,
584 (unsigned int)chip->pch_phub_base_address); 584 chip->pch_phub_base_address);
585 chip->pch_phub_extrom_base_address = pci_map_rom(pdev, &rom_size); 585 chip->pch_phub_extrom_base_address = pci_map_rom(pdev, &rom_size);
586 586
587 if (chip->pch_phub_extrom_base_address == 0) { 587 if (chip->pch_phub_extrom_base_address == 0) {
@@ -591,8 +591,8 @@ static int __devinit pch_phub_probe(struct pci_dev *pdev,
591 } 591 }
592 dev_dbg(&pdev->dev, "%s : " 592 dev_dbg(&pdev->dev, "%s : "
593 "pci_map_rom SUCCESS and value in " 593 "pci_map_rom SUCCESS and value in "
594 "pch_phub_extrom_base_address variable is 0x%08x\n", __func__, 594 "pch_phub_extrom_base_address variable is %p\n", __func__,
595 (unsigned int)chip->pch_phub_extrom_base_address); 595 chip->pch_phub_extrom_base_address);
596 596
597 pci_set_drvdata(pdev, chip); 597 pci_set_drvdata(pdev, chip);
598 598