Skip to content

Commit 83d09ad

Browse files
committed
Merge tag 'for-linus' of git://github.com/openrisc/linux
Pull OpenRISC fixes from Stafford Horne: - Compiler warning fixup for new Litex SoC driver - Sparse warning fixup for iounmap * tag 'for-linus' of git://github.com/openrisc/linux: openrisc: io: Add missing __iomem annotation to iounmap() soc: litex: Fix compile warning when device tree is not configured
2 parents 36ada25 + 031c7a8 commit 83d09ad

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

arch/openrisc/include/asm/io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
void __iomem *ioremap(phys_addr_t offset, unsigned long size);
3232

3333
#define iounmap iounmap
34-
extern void iounmap(void *addr);
34+
extern void iounmap(void __iomem *addr);
3535

3636
#include <asm-generic/io.h>
3737

arch/openrisc/mm/ioremap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void __iomem *__ref ioremap(phys_addr_t addr, unsigned long size)
7777
}
7878
EXPORT_SYMBOL(ioremap);
7979

80-
void iounmap(void *addr)
80+
void iounmap(void __iomem *addr)
8181
{
8282
/* If the page is from the fixmap pool then we just clear out
8383
* the fixmap mapping.

drivers/soc/litex/litex_soc_ctrl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,13 @@ struct litex_soc_ctrl_device {
140140
void __iomem *base;
141141
};
142142

143+
#ifdef CONFIG_OF
143144
static const struct of_device_id litex_soc_ctrl_of_match[] = {
144145
{.compatible = "litex,soc-controller"},
145146
{},
146147
};
147-
148148
MODULE_DEVICE_TABLE(of, litex_soc_ctrl_of_match);
149+
#endif /* CONFIG_OF */
149150

150151
static int litex_soc_ctrl_probe(struct platform_device *pdev)
151152
{

0 commit comments

Comments
 (0)