diff options
author | Dave Airlie <airlied@linux.ie> | 2005-02-07 11:20:43 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-02-07 11:20:43 +0000 |
commit | 03ddea5b274a515528ea58db62f7b5f779430c5b (patch) | |
tree | 2c517b24c88ba20606176f4db5331c16970d60dc | |
parent | 300e0866d68d40af9271a588bd93522e4e7a339c (diff) |
change DRIVER_ to CORE_ makes things look nicer, also change it so the
driver name is marked on resource allocations
-rw-r--r-- | linux-core/drm_core.h | 14 | ||||
-rw-r--r-- | linux-core/drm_drv.c | 8 | ||||
-rw-r--r-- | linux-core/drm_stub.c | 6 | ||||
-rw-r--r-- | linux-core/drm_sysfs.c | 4 |
4 files changed, 14 insertions, 18 deletions
diff --git a/linux-core/drm_core.h b/linux-core/drm_core.h index 33b14cc2..ff76497e 100644 --- a/linux-core/drm_core.h +++ b/linux-core/drm_core.h @@ -23,15 +23,15 @@ * DEALINGS IN THE SOFTWARE. */ -#define DRIVER_AUTHOR "Gareth Hughes, Leif Delgass, José Fonseca, Jon Smirl" +#define CORE_AUTHOR "Gareth Hughes, Leif Delgass, José Fonseca, Jon Smirl" -#define DRIVER_NAME "drm" -#define DRIVER_DESC "DRM shared core routines" -#define DRIVER_DATE "20040925" +#define CORE_NAME "drm" +#define CORE_DESC "DRM shared core routines" +#define CORE_DATE "20040925" #define DRM_IF_MAJOR 1 #define DRM_IF_MINOR 2 -#define DRIVER_MAJOR 1 -#define DRIVER_MINOR 0 -#define DRIVER_PATCHLEVEL 0 +#define CORE_MAJOR 1 +#define CORE_MINOR 0 +#define CORE_PATCHLEVEL 0 diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index c720f94b..60020bb9 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -15,10 +15,6 @@ * #define DRIVER_DESC "Matrox G200/G400" * #define DRIVER_DATE "20001127" * - * #define DRIVER_MAJOR 2 - * #define DRIVER_MINOR 0 - * #define DRIVER_PATCHLEVEL 2 - * * #define DRIVER_IOCTL_COUNT DRM_ARRAY_SIZE( mga_ioctls ) * * #define drm_x mga_##x @@ -502,8 +498,8 @@ static int __init drm_core_init(void) } DRM_INFO("Initialized %s %d.%d.%d %s\n", - DRIVER_NAME, - DRIVER_MAJOR, DRIVER_MINOR, DRIVER_PATCHLEVEL, DRIVER_DATE); + CORE_NAME, + CORE_MAJOR, CORE_MINOR, CORE_PATCHLEVEL, CORE_DATE); return 0; err_p3: drm_sysfs_destroy(drm_class); diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index 207189f1..2165dc58 100644 --- a/linux-core/drm_stub.c +++ b/linux-core/drm_stub.c @@ -41,8 +41,8 @@ unsigned int cards_limit = 16; /* Enough for one machine */ unsigned int drm_debug = 0; /* 1 to enable debug output */ EXPORT_SYMBOL(drm_debug); -MODULE_AUTHOR(DRIVER_AUTHOR); -MODULE_DESCRIPTION(DRIVER_DESC); +MODULE_AUTHOR(CORE_AUTHOR); +MODULE_DESCRIPTION(CORE_DESC); MODULE_LICENSE("GPL and additional rights"); MODULE_PARM_DESC(cards_limit, "Maximum number of graphics cards"); MODULE_PARM_DESC(drm_debug, "Enable debug output"); @@ -154,7 +154,7 @@ int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, if (!drm_fb_loaded) { pci_set_drvdata(pdev, dev); - pci_request_regions(pdev, DRIVER_NAME); + pci_request_regions(pdev, driver->pci_driver.name); pci_enable_device(pdev); } if ((ret = fill_in_dev(dev, pdev, ent, driver))) { diff --git a/linux-core/drm_sysfs.c b/linux-core/drm_sysfs.c index 85edcfc9..405ba44c 100644 --- a/linux-core/drm_sysfs.c +++ b/linux-core/drm_sysfs.c @@ -55,8 +55,8 @@ static void drm_sysfs_class_release(struct class *class) /* Display the version of drm_core. This doesn't work right in current design */ static ssize_t version_show(struct class *dev, char *buf) { - return sprintf(buf, "%s %d.%d.%d %s\n", DRIVER_NAME, DRIVER_MAJOR, - DRIVER_MINOR, DRIVER_PATCHLEVEL, DRIVER_DATE); + return sprintf(buf, "%s %d.%d.%d %s\n", CORE_NAME, CORE_MAJOR, + CORE_MINOR, CORE_PATCHLEVEL, CORE_DATE); } static CLASS_ATTR(version, S_IRUGO, version_show, NULL); |