Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67960
b: refs/heads/master
c: 34b51f3
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 461f7bb commit c3bc08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6374475661172d508a9b93a2740a3fdc9d899756
refs/heads/master: 34b51f39e23bc9e529830ddf6108381d4bab95a6
7 changes: 2 additions & 5 deletions trunk/drivers/firmware/dmi-id.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ struct dmi_device_attribute{
#define to_dmi_dev_attr(_dev_attr) \
container_of(_dev_attr, struct dmi_device_attribute, dev_attr)

#define DEFINE_DMI_ATTR(_name, _mode, _show) \
static struct device_attribute sys_dmi_##_name##_attr = \
__ATTR(_name, _mode, _show, NULL);

static ssize_t sys_dmi_field_show(struct device *dev,
struct device_attribute *attr,
char *page)
Expand Down Expand Up @@ -135,7 +131,8 @@ static ssize_t sys_dmi_modalias_show(struct device *dev,
return r+1;
}

DEFINE_DMI_ATTR(modalias, 0444, sys_dmi_modalias_show);
static struct device_attribute sys_dmi_modalias_attr =
__ATTR(modalias, 0444, sys_dmi_modalias_show, NULL);

static struct attribute *sys_dmi_attributes[DMI_STRING_MAX+2];

Expand Down

0 comments on commit c3bc08e

Please sign in to comment.