[PATCH 6/9] remove device_attribute

From: Michail Kurachkin
Date: Wed Feb 27 2013 - 11:26:31 EST


Signed-off-by: Michail Kurachkin <michail.kurachkin@xxxxxxxxxxx>
---
drivers/staging/tdm/tdm_core.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/tdm/tdm_core.c b/drivers/staging/tdm/tdm_core.c
index f3ac6fc..cf8c26a 100644
--- a/drivers/staging/tdm/tdm_core.c
+++ b/drivers/staging/tdm/tdm_core.c
@@ -50,20 +50,6 @@ static void tdmdev_release(struct device *dev)
kfree(tdm_dev);
}

-static ssize_t
-modalias_show(struct device *dev, struct device_attribute *a, char *buf)
-{
- const struct tdm_device *tdm_dev = to_tdm_device(dev);
-
- return sprintf(buf, "%s\n", tdm_dev->modalias);
-}
-
-static struct device_attribute tdm_dev_attrs[] = {
- __ATTR_RO(modalias),
- __ATTR_NULL,
-};
-
-
static int tdm_match_device(struct device *dev, struct device_driver *drv)
{
const struct tdm_device *tdm_dev = to_tdm_device(dev);
@@ -104,7 +90,7 @@ static struct class tdm_class = {
*/
struct bus_type tdm_bus_type = {
.name = "tdm",
- .dev_attrs = tdm_dev_attrs,
+ .dev_attrs = NULL,
.match = tdm_match_device,
.uevent = tdm_uevent,
.suspend = NULL,
--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/