Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] lirc_bt829: Fix physical address type

Use phys_addr_t and log format %pa.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>

authored by

Ben Hutchings and committed by
Mauro Carvalho Chehab
d06d3ea7 2fcd9dc3

+2 -3
+2 -3
drivers/staging/media/lirc/lirc_bt829.c
··· 63 63 } while (0) 64 64 65 65 static int atir_minor; 66 - static unsigned long pci_addr_phys; 66 + static phys_addr_t pci_addr_phys; 67 67 static unsigned char *pci_addr_lin; 68 68 69 69 static struct lirc_driver atir_driver; ··· 78 78 pci_addr_phys = 0; 79 79 if (my_dev->resource[0].flags & IORESOURCE_MEM) { 80 80 pci_addr_phys = my_dev->resource[0].start; 81 - pr_info("memory at 0x%08X\n", 82 - (unsigned int)pci_addr_phys); 81 + pr_info("memory at %pa\n", &pci_addr_phys); 83 82 } 84 83 if (pci_addr_phys == 0) { 85 84 pr_err("no memory resource ?\n");