Bug 31316

Summary: kldxref introduction broke snd_driver.ko
Product: Base System Reporter: ak03 <ak03>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description ak03 2001-10-16 19:30:00 UTC
	snd_driver uses MODULE_DEPEND(name, ....) to load specific cards
	drivers. Previously, the 'name' above was treated as a name of
	the kernel module binary, i.e system would try to load name.ko
	in the above case. This has changed with kldxref and corresponding
	kernel module linker changes. Linker currently looks for the name, 
	specified in the DRIVER_MODULE() macro instead.

	Several sound drivers currently have driver name which differs
	from the module filename, and since snd_driver tries to
	depend on them using their filenames, it is unable to load
	and fails with an 'unavailable dependency' error.

	The patch below simply restores one-to-one mapping 
	between driver name and its module name. This way 
	the same code will work as expected on both -CURRENT and
	-STABLE.

How-To-Repeat: 	kldload snd_driver.ko should suffice.
Comment 1 ak03 2001-10-29 16:41:58 UTC
John Baldwin committed the same fix to the tree. This PR can be closed now.
Comment 2 dd freebsd_committer freebsd_triage 2001-10-30 13:47:56 UTC
State Changed
From-To: open->closed

requested by originator