linuxkpi: hdmi: Split the module declaration to a new file

In order to have a proper linuxkpi_video kmod, move the module declaration
to a new file as linuxkpi_video will also include linux_hdmi.c

Differential Revision:	https://reviews.freebsd.org/D44926
Reviewed by:		bz, emaste, wulf
Sponsored by:		Beckhoff Automation GmbH & Co. KG
This commit is contained in:
Emmanuel Vadot 2024-04-24 09:59:20 +02:00
parent 6a7819e43f
commit 7f84bb34a1
3 changed files with 8 additions and 10 deletions

View file

@ -21,12 +21,6 @@
* DEALINGS IN THE SOFTWARE.
*/
#ifdef __FreeBSD__
#include <sys/param.h>
#include <sys/module.h>
#endif
#include <linux/bitops.h>
#include <linux/bug.h>
#include <linux/errno.h>
@ -1915,7 +1909,3 @@ int hdmi_infoframe_unpack(union hdmi_infoframe *frame,
return ret;
}
EXPORT_SYMBOL(hdmi_infoframe_unpack);
MODULE_VERSION(linuxkpi_hdmi, 1);
MODULE_DEPEND(linuxkpi_hdmi, linuxkpi, 1, 1, 1);

View file

@ -0,0 +1,7 @@
/* Public domain. */
#include <sys/param.h>
#include <sys/module.h>
MODULE_VERSION(linuxkpi_hdmi, 1);
MODULE_DEPEND(linuxkpi_hdmi, linuxkpi, 1, 1, 1);

View file

@ -2,6 +2,7 @@
KMOD= linuxkpi_hdmi
SRCS= linux_hdmi.c \
linuxkpi_hdmikmod.c
SRCS+= ${LINUXKPI_GENSRCS}