From ea4122d2bf741fef648e16aa82ad42f5a3ba5382 Mon Sep 17 00:00:00 2001 From: Nicolas Souchu Date: Mon, 25 Mar 2002 21:22:35 +0000 Subject: Fix bktr and pcf compilation with LINT --- sys/dev/pcf/pcf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pcf') diff --git a/sys/dev/pcf/pcf.c b/sys/dev/pcf/pcf.c index e4f8a69fb191..741243518dfd 100644 --- a/sys/dev/pcf/pcf.c +++ b/sys/dev/pcf/pcf.c @@ -197,10 +197,10 @@ pcf_attach(device_t pcfdev) return (error); } - pcf->iicbus = iicbus_alloc_bus(pcfdev); + pcf->iicbus = device_add_child(pcfdev, "iicbus", -1); /* probe and attach the iicbus */ - device_probe_and_attach(pcf->iicbus); + bus_generic_attach(pcfdev); return (0); } -- cgit v1.3