From: Hauke Mehrtens Date: Tue, 17 Aug 2010 18:32:33 +0000 (+0200) Subject: compat: fix warning in device_rename X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4715fbe76040b652ad32cd133fbc6f6ceb4975c1;p=openwrt%2Fstaging%2Fblogic.git compat: fix warning in device_rename Signed-off-by: Hauke Mehrtens --- diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h index b14c77272778..5b48215cbd4e 100644 --- a/include/linux/compat-2.6.36.h +++ b/include/linux/compat-2.6.36.h @@ -13,6 +13,8 @@ struct va_format { va_list *va; }; +#define device_rename(dev, new_name) device_rename(dev, (char *)new_name) + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */ #endif /* LINUX_26_36_COMPAT_H */