提交 cd4c1eb5 编写于 作者: R Russell King 提交者: Russell King

[ARM] Fix class_device damage caused by 0c55445f

Lots of compile errors in drivers/mfd/ucb1x00-assabet.c...
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 193c3cc1
......@@ -20,7 +20,7 @@
#include "ucb1x00.h"
#define UCB1X00_ATTR(name,input)\
static ssize_t name##_show(struct device *dev, struct device_attribute *attr,
static ssize_t name##_show(struct device *dev, struct device_attribute *attr, \
char *buf) \
{ \
struct ucb1x00 *ucb = classdev_to_ucb1x00(dev); \
......@@ -38,17 +38,17 @@ UCB1X00_ATTR(batt_temp, UCB_ADC_INP_AD2);
static int ucb1x00_assabet_add(struct ucb1x00_dev *dev)
{
device_create_file(&dev->ucb->dev, &device_attr_vbatt);
device_create_file(&dev->ucb->dev, &device_attr_vcharger);
device_create_file(&dev->ucb->dev, &device_attr_batt_temp);
device_create_file(&dev->ucb->dev, &dev_attr_vbatt);
device_create_file(&dev->ucb->dev, &dev_attr_vcharger);
device_create_file(&dev->ucb->dev, &dev_attr_batt_temp);
return 0;
}
static void ucb1x00_assabet_remove(struct ucb1x00_dev *dev)
{
device_remove_file(&dev->ucb->cdev, &device_attr_batt_temp);
device_remove_file(&dev->ucb->cdev, &device_attr_vcharger);
device_remove_file(&dev->ucb->cdev, &device_attr_vbatt);
device_remove_file(&dev->ucb->dev, &dev_attr_batt_temp);
device_remove_file(&dev->ucb->dev, &dev_attr_vcharger);
device_remove_file(&dev->ucb->dev, &dev_attr_vbatt);
}
static struct ucb1x00_driver ucb1x00_assabet_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册