diff options
author | Dave Airlie <airlied@redhat.com> | 2014-04-30 19:32:21 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-30 19:32:21 -0400 |
commit | 444c9a08bf787e8236e132fab7eceeb2f065aa4c (patch) | |
tree | 52a117f1531f8fcc7f775cacd309d92e64c27a10 /drivers/gpu/drm/tegra | |
parent | 7e9ab4081e646fc317d0a87929a352f0e5082190 (diff) | |
parent | 3c8413951cbd8a2d855740823fc547c97b845f6f (diff) |
Merge branch 'drm-init-cleanup' of git://people.freedesktop.org/~danvet/drm into drm-next
Next pull request, this time more of the drm de-midlayering work. The big
thing is that his patch series here removes everything from drm_bus except
the set_busid callback. Thierry has a few more patches on top of this to
make that one optional to.
With that we can ditch all the non-pci drm_bus implementations, which
Thierry has already done for the fake tegra host1x drm_bus.
Reviewed by Thierry, Laurent and David and now also survived some testing
on my intel boxes to make sure the irq fumble is fixed correctly ;-) The
last minute rebase was just to add the r-b tags from Thierry for the 2
patches I've redone.
* 'drm-init-cleanup' of git://people.freedesktop.org/~danvet/drm:
drm/<drivers>: don't set driver->dev_priv_size to 0
drm: Remove dev->kdriver
drm: remove drm_bus->get_name
drm: rip out dev->devname
drm: inline drm_pci_set_unique
drm: remove bus->get_irq implementations
drm: pass the irq explicitly to drm_irq_install
drm/irq: Look up the pci irq directly in the drm_control ioctl
drm/irq: track the irq installed in drm_irq_install in dev->irq
drm: rename dev->count_lock to dev->buf_lock
drm: Rip out totally bogus vga_switcheroo->can_switch locking
drm: kill drm_bus->bus_type
drm: remove drm_dev_to_irq from drivers
drm/irq: remove cargo-culted locking from irq_install/uninstall
drm/irq: drm_control is a legacy ioctl, so pci devices only
drm/pci: fold in irq_by_busid support
drm/irq: simplify irq checks in drm_wait_vblank
Diffstat (limited to 'drivers/gpu/drm/tegra')
-rw-r--r-- | drivers/gpu/drm/tegra/bus.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/tegra/bus.c b/drivers/gpu/drm/tegra/bus.c index 71cef5c13dc8..b3a66d65cb53 100644 --- a/drivers/gpu/drm/tegra/bus.c +++ b/drivers/gpu/drm/tegra/bus.c | |||
@@ -12,9 +12,7 @@ static int drm_host1x_set_busid(struct drm_device *dev, | |||
12 | struct drm_master *master) | 12 | struct drm_master *master) |
13 | { | 13 | { |
14 | const char *device = dev_name(dev->dev); | 14 | const char *device = dev_name(dev->dev); |
15 | const char *driver = dev->driver->name; | ||
16 | const char *bus = dev->dev->bus->name; | 15 | const char *bus = dev->dev->bus->name; |
17 | int length; | ||
18 | 16 | ||
19 | master->unique_len = strlen(bus) + 1 + strlen(device); | 17 | master->unique_len = strlen(bus) + 1 + strlen(device); |
20 | master->unique_size = master->unique_len; | 18 | master->unique_size = master->unique_len; |
@@ -25,19 +23,10 @@ static int drm_host1x_set_busid(struct drm_device *dev, | |||
25 | 23 | ||
26 | snprintf(master->unique, master->unique_len + 1, "%s:%s", bus, device); | 24 | snprintf(master->unique, master->unique_len + 1, "%s:%s", bus, device); |
27 | 25 | ||
28 | length = strlen(driver) + 1 + master->unique_len; | ||
29 | |||
30 | dev->devname = kmalloc(length + 1, GFP_KERNEL); | ||
31 | if (!dev->devname) | ||
32 | return -ENOMEM; | ||
33 | |||
34 | snprintf(dev->devname, length + 1, "%s@%s", driver, master->unique); | ||
35 | |||
36 | return 0; | 26 | return 0; |
37 | } | 27 | } |
38 | 28 | ||
39 | static struct drm_bus drm_host1x_bus = { | 29 | static struct drm_bus drm_host1x_bus = { |
40 | .bus_type = DRIVER_BUS_HOST1X, | ||
41 | .set_busid = drm_host1x_set_busid, | 30 | .set_busid = drm_host1x_set_busid, |
42 | }; | 31 | }; |
43 | 32 | ||