|
@@ -42,6 +42,8 @@
|
|
|
#include <linux/can/dev.h>
|
|
|
|
|
|
#include <linux/of_platform.h>
|
|
|
+#include <linux/of_address.h>
|
|
|
+#include <linux/of_irq.h>
|
|
|
#include <asm/prom.h>
|
|
|
|
|
|
#include "sja1000.h"
|
|
@@ -59,13 +61,13 @@ MODULE_LICENSE("GPL v2");
|
|
|
|
|
|
static u8 sja1000_ofp_read_reg(const struct sja1000_priv *priv, int reg)
|
|
|
{
|
|
|
- return in_8(priv->reg_base + reg);
|
|
|
+ return ioread8(priv->reg_base + reg);
|
|
|
}
|
|
|
|
|
|
static void sja1000_ofp_write_reg(const struct sja1000_priv *priv,
|
|
|
int reg, u8 val)
|
|
|
{
|
|
|
- out_8(priv->reg_base + reg, val);
|
|
|
+ iowrite8(val, priv->reg_base + reg);
|
|
|
}
|
|
|
|
|
|
static int __devexit sja1000_ofp_remove(struct platform_device *ofdev)
|