aboutsummaryrefslogtreecommitdiffstats
path: root/p28.patch
diff options
Diffstat (limited to 'p28.patch')
-rw-r--r--p28.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/p28.patch b/p28.patch
index a19fb142ba5dae..66a9ef27869dd3 100644
--- a/p28.patch
+++ b/p28.patch
@@ -12,7 +12,7 @@
static ssize_t name_show(struct device *dev,
struct device_attribute *attr, char *buf)
-@@ -406,6 +407,7 @@ static ssize_t name_show(struct device *
+@@ -406,19 +407,22 @@ static ssize_t name_show(struct device *
ofdev = to_platform_device(dev);
return sprintf(buf, "%s\n", ofdev->dev.of_node->name);
}
@@ -20,9 +20,8 @@
static ssize_t modalias_show(struct device *dev,
struct device_attribute *attr, char *buf)
-@@ -415,13 +417,15 @@ static ssize_t modalias_show(struct devi
- buf[len+1] = 0;
- return len+1;
+ {
+ return of_device_modalias(dev, buf, PAGE_SIZE);
}
+static DEVICE_ATTR_RO(modalias);
@@ -41,7 +40,7 @@
struct bus_type ibmebus_bus_type = {
.name = "ibmebus",
-@@ -431,7 +435,7 @@ struct bus_type ibmebus_bus_type = {
+@@ -428,7 +432,7 @@ struct bus_type ibmebus_bus_type = {
.probe = ibmebus_bus_device_probe,
.remove = ibmebus_bus_device_remove,
.shutdown = ibmebus_bus_device_shutdown,