summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/mmapbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dahdi/xpp/mmapbus.c')
-rw-r--r--drivers/dahdi/xpp/mmapbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/mmapbus.c b/drivers/dahdi/xpp/mmapbus.c
index 30ca8c5..ffe9358 100644
--- a/drivers/dahdi/xpp/mmapbus.c
+++ b/drivers/dahdi/xpp/mmapbus.c
@@ -5,7 +5,7 @@
static int mmap_match(struct device *dev, struct device_driver *driver)
{
- return !strncmp(dev->bus_id, driver->name, strlen(driver->name));
+ return !strncmp(dev_name(dev), driver->name, strlen(driver->name));
}
static int mmap_uevent(struct device *dev, char **envp, int num_envp, char *buffer, int buffer_size)
{