Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2010 09:35:16 +0200
From:      Stefan Ehmann <shoesoft@gmx.net>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: multimedia/pvr250 port doesn't compile on FreeBSD 8
Message-ID:  <201005210935.16291.shoesoft@gmx.net>
In-Reply-To: <20100520215235.9960d8be.torfinn.ingolfsen@broadpark.no>
References:  <20100513233437.GR27722@danbala.tuwien.ac.at> <201005202145.31750.shoesoft@gmx.net> <20100520215235.9960d8be.torfinn.ingolfsen@broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 20 May 2010 21:52:35 Torfinn Ingolfsen wrote:
...
> > > Reading through the thread, I am left with one question:
> > > Where should I add this line:
> > > DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0);
> > > 
> > > I tried adding it to cxm.c (below the other DRIVER_MODULE line) but
> > > that didn't help. and /usr/src/sys/dev/iicbus/iicbb.c already contains
> > > that line.
> > 
> > I put it in cxm_i2c.c for pvrxxx.
> 
> Hmm, cxm_i2c.c already contains that line.
> root@kg-fil# grep DRIVER ./work/dev/cxm/cxm_i2c.c
> DRIVER_MODULE(cxm_iic, cxm, cxm_iic_driver, cxm_iic_devclass, 0, 0);
> root@kg-fil# uname -a
> FreeBSD kg-fil.kg4.no 8.0-STABLE FreeBSD 8.0-STABLE #3: Thu Dec 31 00:34:23
> CET 2009     root@kg-fil.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> Do I also need to "hack" minor?

These lines are not the same. You need them both:

--- pvrxxx.orig/dev/cxm/cxm_i2c.c       2009-12-05 13:31:54.000000000 +0100
+++ pvrxxx/work/dev/cxm/cxm_i2c.c       2009-12-01 08:52:29.000000000 +0100
@@ -131,6 +131,7 @@
 #endif
 MODULE_VERSION(cxm_iic, 1);
 DRIVER_MODULE(cxm_iic, cxm, cxm_iic_driver, cxm_iic_devclass, 0, 0);
+DRIVER_MODULE(iicbb, cxm_iic, iicbb_driver, iicbb_devclass, 0, 0);
 
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005210935.16291.shoesoft>