backport: add hacks for const correctness

parent 01ce0bb2
......@@ -166,7 +166,7 @@ static void __fmc_show_sdb_tree(const struct fmc_device *fmc,
base = 0;
for (ap = arr; ap; ap = ap->parent)
base += ap->baseaddr;
dev_info(&fmc->dev, "SDB: ");
dev_info((struct device *)&fmc->dev, "SDB: ");
for (j = 0; j < level; j++)
printk(" ");
......
......@@ -12,7 +12,7 @@ static inline struct delayed_work *to_delayed_work(struct work_struct *work)
/* dev_name() appeared in v2.6.26-rc1 */
/* dev_set_name() appeared in v2.6.26-rc6 */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26)
static inline const char *dev_name(struct device *dev)
static inline const char *dev_name(const struct device *dev)
{
return kobject_name(&dev->kobj);
}
......
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