From: Yani Ioannou Date: Tue, 17 May 2005 10:44:59 +0000 (-0400) Subject: [PATCH] Driver Core: include: update device attribute callbacks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f2d03e1b3f00f1c5971463ab0101bef0c521ad3b;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] Driver Core: include: update device attribute callbacks Signed-off-by: Yani Ioannou Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/asm-ppc/ocp.h b/include/asm-ppc/ocp.h index b98db3cdae8..c726f184519 100644 --- a/include/asm-ppc/ocp.h +++ b/include/asm-ppc/ocp.h @@ -189,7 +189,7 @@ extern void ocp_for_each_device(void(*callback)(struct ocp_device *, void *arg), /* Sysfs support */ #define OCP_SYSFS_ADDTL(type, format, name, field) \ static ssize_t \ -show_##name##_##field(struct device *dev, char *buf) \ +show_##name##_##field(struct device *dev, struct device_attribute *attr, char *buf) \ { \ struct ocp_device *odev = to_ocp_dev(dev); \ type *add = odev->def->additions; \