Skip to content

Commit

Permalink
drm: remove bus->get_irq implementations
Browse files Browse the repository at this point in the history
Now that they're all unused we can get rid of them, including the
dummy version in drm_usb.c.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Daniel Vetter committed Apr 23, 2014
1 parent bb0f1b5 commit b2a21aa
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions drivers/gpu/drm/drm_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ static int drm_get_pci_domain(struct drm_device *dev)
return pci_domain_nr(dev->pdev->bus);
}

static int drm_pci_get_irq(struct drm_device *dev)
{
return dev->pdev->irq;
}

static const char *drm_pci_get_name(struct drm_device *dev)
{
struct pci_driver *pdriver = dev->driver->kdriver.pci;
Expand Down Expand Up @@ -317,7 +312,6 @@ void drm_pci_agp_destroy(struct drm_device *dev)
}

static struct drm_bus drm_pci_bus = {
.get_irq = drm_pci_get_irq,
.get_name = drm_pci_get_name,
.set_busid = drm_pci_set_busid,
.set_unique = drm_pci_set_unique,
Expand Down
6 changes: 0 additions & 6 deletions drivers/gpu/drm/drm_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ static int drm_get_platform_dev(struct platform_device *platdev,
return ret;
}

static int drm_platform_get_irq(struct drm_device *dev)
{
return platform_get_irq(dev->platformdev, 0);
}

static const char *drm_platform_get_name(struct drm_device *dev)
{
return dev->platformdev->name;
Expand Down Expand Up @@ -123,7 +118,6 @@ static int drm_platform_set_busid(struct drm_device *dev, struct drm_master *mas
}

static struct drm_bus drm_platform_bus = {
.get_irq = drm_platform_get_irq,
.get_name = drm_platform_get_name,
.set_busid = drm_platform_set_busid,
};
Expand Down
6 changes: 0 additions & 6 deletions drivers/gpu/drm/drm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ int drm_get_usb_dev(struct usb_interface *interface,
}
EXPORT_SYMBOL(drm_get_usb_dev);

static int drm_usb_get_irq(struct drm_device *dev)
{
return 0;
}

static const char *drm_usb_get_name(struct drm_device *dev)
{
return "USB";
Expand All @@ -53,7 +48,6 @@ static int drm_usb_set_busid(struct drm_device *dev,
}

static struct drm_bus drm_usb_bus = {
.get_irq = drm_usb_get_irq,
.get_name = drm_usb_get_name,
.set_busid = drm_usb_set_busid,
};
Expand Down
1 change: 0 additions & 1 deletion include/drm/drmP.h
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,6 @@ struct drm_master {
#define DRM_SCANOUTPOS_ACCURATE (1 << 2)

struct drm_bus {
int (*get_irq)(struct drm_device *dev);
const char *(*get_name)(struct drm_device *dev);
int (*set_busid)(struct drm_device *dev, struct drm_master *master);
int (*set_unique)(struct drm_device *dev, struct drm_master *master,
Expand Down

0 comments on commit b2a21aa

Please sign in to comment.