Commit d06d3ea7 authored by Ben Hutchings's avatar Ben Hutchings Committed by Mauro Carvalho Chehab

[media] lirc_bt829: Fix physical address type

Use phys_addr_t and log format %pa.
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
Reviewed-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 2fcd9dc3
...@@ -63,7 +63,7 @@ static bool debug; ...@@ -63,7 +63,7 @@ static bool debug;
} while (0) } while (0)
static int atir_minor; static int atir_minor;
static unsigned long pci_addr_phys; static phys_addr_t pci_addr_phys;
static unsigned char *pci_addr_lin; static unsigned char *pci_addr_lin;
static struct lirc_driver atir_driver; static struct lirc_driver atir_driver;
...@@ -78,8 +78,7 @@ static struct pci_dev *do_pci_probe(void) ...@@ -78,8 +78,7 @@ static struct pci_dev *do_pci_probe(void)
pci_addr_phys = 0; pci_addr_phys = 0;
if (my_dev->resource[0].flags & IORESOURCE_MEM) { if (my_dev->resource[0].flags & IORESOURCE_MEM) {
pci_addr_phys = my_dev->resource[0].start; pci_addr_phys = my_dev->resource[0].start;
pr_info("memory at 0x%08X\n", pr_info("memory at %pa\n", &pci_addr_phys);
(unsigned int)pci_addr_phys);
} }
if (pci_addr_phys == 0) { if (pci_addr_phys == 0) {
pr_err("no memory resource ?\n"); pr_err("no memory resource ?\n");
......
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