From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 25 Oct 2006 10:00:48 +0200 From: Heiko Carstens To: arnd@arndb.de Subject: Re: [PATCH 12/16] cell: add temperature to SPU and CPU sysfs entries Message-ID: <20061025080048.GB7090@osiris.boeblingen.de.ibm.com> References: <20061024163113.694643000@arndb.de> <20061024163816.851732000@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20061024163816.851732000@arndb.de> Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, paulus@samba.org, Christian Krafft , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Oct 24, 2006 at 06:31:25PM +0200, arnd@arndb.de wrote: > + * (C) Copyright IBM Deutschland Entwicklung GmbH 2005 IBM Corp. instead of IBM DE? 2006? > +static int __init thermal_init(void) > +{ > + init_default_values(); > + > + spu_add_sysdev_attr_group(&spu_attribute_group); > + cpu_add_sysdev_attr_group(&ppe_attribute_group); > + > + return 0; > +} Same here: check for errors on spu_add_sysdev_attr_group and cpu_add_sysdev_attr_group. > +static void __exit thermal_exit(void) > +{ > + spu_remove_sysdev_attr_group(&spu_attribute_group); > + cpu_remove_sysdev_attr_group(&ppe_attribute_group); Will crash if cpu_add_sysdev_attr_group failed...