Subject: Re: Bluetooth module on com(4)
To: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-kern
Date: 01/10/2007 11:15:50
On Tue, 9 Jan 2007, KIYOHARA Takashi wrote:

+static struct btuart_softc *
+btuart_alloc(size_t size)
+{
[...]

I'm not sure that the way you handle making a new device is proper,
because you duplicate functionality from the kernel autoconf routines and
when that evolves, btuart would be left behind..  I think it would be
better to use config_attach_pseudo()/config_detach() to handle that, see
dev/hpc/hpf1275a_tty.c for a nicely written example of that.

regards,
iain