search for: regbase

Displaying 6 results from an estimated 6 matches for "regbase".

Did you mean: rebase
2006 Aug 18
0
[PATCH/RFC] gcc warnings of void * arithmetic
...en/drivers/video/vga.c --- a/xen/drivers/video/vga.c Fri Aug 18 13:30:01 2006 -0400 +++ b/xen/drivers/video/vga.c Fri Aug 18 13:43:30 2006 -0400 @@ -185,17 +185,17 @@ static inline void vga_io_w_fast(uint16_ outw(VGA_OUT16VAL(val, reg), port); } -static inline uint8_t vga_mm_r(void __iomem *regbase, uint16_t port) +static inline uint8_t vga_mm_r(char __iomem *regbase, uint16_t port) { return readb(regbase + port); } -static inline void vga_mm_w(void __iomem *regbase, uint16_t port, uint8_t val) +static inline void vga_mm_w(char __iomem *regbase, uint16_t port, uint8_t val) { wr...
2019 Dec 23
7
[PATCH 1/6] iommu/omap: convert to devm_platform_ioremap_resource
...ev->dev.of_node; struct orphan_dev *orphan_dev, *tmp; @@ -1218,8 +1217,7 @@ static int omap_iommu_probe(struct platform_device *pdev) spin_lock_init(&obj->iommu_lock); spin_lock_init(&obj->page_table_lock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - obj->regbase = devm_ioremap_resource(obj->dev, res); + obj->regbase = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(obj->regbase)) return PTR_ERR(obj->regbase); -- 2.17.1
2019 Dec 23
7
[PATCH 1/6] iommu/omap: convert to devm_platform_ioremap_resource
...ev->dev.of_node; struct orphan_dev *orphan_dev, *tmp; @@ -1218,8 +1217,7 @@ static int omap_iommu_probe(struct platform_device *pdev) spin_lock_init(&obj->iommu_lock); spin_lock_init(&obj->page_table_lock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - obj->regbase = devm_ioremap_resource(obj->dev, res); + obj->regbase = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(obj->regbase)) return PTR_ERR(obj->regbase); -- 2.17.1
2012 Nov 19
2
[PATCH 158/493] video: remove use of __devinit
...*xtal; @@ -2787,7 +2787,7 @@ aty_init_exit: } #if defined(CONFIG_ATARI) && !defined(MODULE) -static int __devinit store_video_par(char *video_str, unsigned char m64_num) +static int store_video_par(char *video_str, unsigned char m64_num) { char *p; unsigned long vmembase, size, guiregbase; @@ -2961,7 +2961,7 @@ static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, #ifdef __sparc__ -static int __devinit atyfb_setup_sparc(struct pci_dev *pdev, +static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info, unsigned long addr...
2012 Nov 19
2
[PATCH 158/493] video: remove use of __devinit
...*xtal; @@ -2787,7 +2787,7 @@ aty_init_exit: } #if defined(CONFIG_ATARI) && !defined(MODULE) -static int __devinit store_video_par(char *video_str, unsigned char m64_num) +static int store_video_par(char *video_str, unsigned char m64_num) { char *p; unsigned long vmembase, size, guiregbase; @@ -2961,7 +2961,7 @@ static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, #ifdef __sparc__ -static int __devinit atyfb_setup_sparc(struct pci_dev *pdev, +static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info, unsigned long addr...
2012 Nov 19
2
[PATCH 158/493] video: remove use of __devinit
...*xtal; @@ -2787,7 +2787,7 @@ aty_init_exit: } #if defined(CONFIG_ATARI) && !defined(MODULE) -static int __devinit store_video_par(char *video_str, unsigned char m64_num) +static int store_video_par(char *video_str, unsigned char m64_num) { char *p; unsigned long vmembase, size, guiregbase; @@ -2961,7 +2961,7 @@ static int atyfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, #ifdef __sparc__ -static int __devinit atyfb_setup_sparc(struct pci_dev *pdev, +static int atyfb_setup_sparc(struct pci_dev *pdev, struct fb_info *info, unsigned long addr...