aboutsummaryrefslogtreecommitdiff
path: root/linux-core/r128_drv.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-10-10 22:54:55 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-10-10 22:54:55 +0000
commitad549c5ae62fd75aa2bdb8bf5efc4913c476cb02 (patch)
tree8501388508ca7005b8401427448d01dd12a3c0b7 /linux-core/r128_drv.c
parent3f02a793514a866401119efc74c20512f4732703 (diff)
Rename fn_tbl to driver. Core driver now uses pci_driver name which
reflects the personality name.
Diffstat (limited to 'linux-core/r128_drv.c')
-rw-r--r--linux-core/r128_drv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux-core/r128_drv.c b/linux-core/r128_drv.c
index cead11e4..741e6990 100644
--- a/linux-core/r128_drv.c
+++ b/linux-core/r128_drv.c
@@ -93,7 +93,7 @@ static drm_ioctl_desc_t ioctls[] = {
[DRM_IOCTL_NR(DRM_R128_GETPARAM)] = {r128_getparam, 1, 0},
};
-static struct drm_driver_fn driver_fn = {
+static struct drm_driver driver = {
.driver_features =
DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG |
DRIVER_HAVE_DMA | DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED |
@@ -127,10 +127,10 @@ static struct drm_driver_fn driver_fn = {
static int probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
- return drm_probe(pdev, ent, &driver_fn);
+ return drm_probe(pdev, ent, &driver);
}
-static struct pci_driver driver = {
+static struct pci_driver pci_driver = {
.name = DRIVER_NAME,
.id_table = pciidlist,
.probe = probe,
@@ -139,12 +139,12 @@ static struct pci_driver driver = {
static int __init r128_init(void)
{
- return drm_init(&driver, pciidlist, &driver_fn);
+ return drm_init(&pci_driver, pciidlist, &driver);
}
static void __exit r128_exit(void)
{
- drm_exit(&driver);
+ drm_exit(&pci_driver);
}
module_init(r128_init);