agp: move AGPGART_MINOR to include/linux/miscdevice.h
authorCorentin Labbe <clabbe@baylibre.com>
Thu, 21 Nov 2019 08:14:42 +0000 (08:14 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Dec 2019 03:32:45 +0000 (13:32 +1000)
This patch move the define for AGPGART_MINOR to include/linux/miscdevice.h.
It is better that all minor number definitions are in the same place.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1574324085-4338-3-git-send-email-clabbe@baylibre.com
include/linux/agpgart.h
include/linux/miscdevice.h

index c6b61ca..21b34a9 100644 (file)
@@ -30,8 +30,6 @@
 #include <linux/agp_backend.h>
 #include <uapi/linux/agpgart.h>
 
-#define AGPGART_MINOR 175
-
 struct agp_info {
        struct agp_version version;     /* version of the driver        */
        u32 bridge_id;          /* bridge vendor/device         */
index 3247a3d..6f2ca42 100644 (file)
@@ -33,6 +33,7 @@
 #define SGI_MMTIMER            153
 #define STORE_QUEUE_MINOR      155     /* unused */
 #define I2O_MINOR              166
+#define AGPGART_MINOR          175
 #define HWRNG_MINOR            183
 #define MICROCODE_MINOR                184
 #define IRNET_MINOR            187