Rework mgag200_regs_init() and mgag200_mm_init() into device preinit and init functions. The preinit function, mgag200_device_preinit(), requests and maps a device's I/O and video memory. The init function, mgag200_device_init() initializes the state of struct mga_device. Splitting the initialization between the two functions is necessary to perform per-model operations between the two calls, such as reading the unique revision ID on G200SEs. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Tested-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220601112522.5774-6-tzimmermann@suse.de
16 lines
322 B
Makefile
16 lines
322 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
mgag200-y := \
|
|
mgag200_drv.o \
|
|
mgag200_g200.o \
|
|
mgag200_g200eh.o \
|
|
mgag200_g200eh3.o \
|
|
mgag200_g200er.o \
|
|
mgag200_g200ev.o \
|
|
mgag200_g200ew3.o \
|
|
mgag200_g200se.o \
|
|
mgag200_g200wb.o \
|
|
mgag200_i2c.o \
|
|
mgag200_mode.o \
|
|
mgag200_pll.o
|
|
|
|
obj-$(CONFIG_DRM_MGAG200) += mgag200.o
|