mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-09 02:26:27 +00:00
Don't (re)define or use ACTUALLY_LKM_NOT_KERNEL - use the existing
definition of QCAM_MODULE for everything involving LKM'ness. Makefile: Don't add -I/sys to CFLAGS. bsd.kmod.mk adds the correct (relative) path.
This commit is contained in:
parent
7472e2e0f8
commit
5c496ee31e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16620
@ -3,7 +3,7 @@ KMOD = qcam_mod
|
||||
SRCS = qcam.c qcamio.c qcam.h
|
||||
MAN8 = qcam.8
|
||||
|
||||
CFLAGS += -I. -I/sys -DQCAM_MODULE -DACTUALLY_LKM_NOT_KERNEL
|
||||
CFLAGS += -I. -DQCAM_MODULE
|
||||
CLEANFILES += qcam.h
|
||||
|
||||
qcam.h:
|
||||
|
@ -145,7 +145,7 @@ qcam_registerdev (struct isa_device *id)
|
||||
kdc->kdc_unit = id->id_unit;
|
||||
kdc->kdc_parentdata = id;
|
||||
|
||||
#ifndef ACTUALLY_LKM_NOT_KERNEL /* there's a bug in dev_attach
|
||||
#ifndef QCAM_MODULE /* there's a bug in dev_attach
|
||||
when running from an LKM */
|
||||
dev_attach(kdc);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user