[PATCH] Driver Core: arch: update device attribute callbacks

Signed-off-by: Yani Ioannou <yani.ioannou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Yani Ioannou
2005-05-17 06:40:51 -04:00
committed by Greg Kroah-Hartman
orang tua 3eb8c7836e
melakukan ff381d2223
11 mengubah file dengan 22 tambahan dan 22 penghapusan

Melihat File

@@ -68,7 +68,7 @@ static int ocp_inited;
/* Sysfs support */
#define OCP_DEF_ATTR(field, format_string) \
static ssize_t \
show_##field(struct device *dev, char *buf) \
show_##field(struct device *dev, struct device_attribute *attr, char *buf) \
{ \
struct ocp_device *odev = to_ocp_dev(dev); \
\

Melihat File

@@ -161,7 +161,7 @@ void of_unregister_driver(struct of_platform_driver *drv)
}
static ssize_t dev_show_devspec(struct device *dev, char *buf)
static ssize_t dev_show_devspec(struct device *dev, struct device_attribute *attr, char *buf)
{
struct of_device *ofdev;