Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932656AbVJ0WBs (ORCPT ); Thu, 27 Oct 2005 18:01:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932657AbVJ0WBs (ORCPT ); Thu, 27 Oct 2005 18:01:48 -0400 Received: from main.gmane.org ([80.91.229.2]:53721 "EHLO ciao.gmane.org") by vger.kernel.org with ESMTP id S932656AbVJ0WBr (ORCPT ); Thu, 27 Oct 2005 18:01:47 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: Matthieu CASTET Subject: Re: [PATCH 5 of 6] tpm: move nsc driver off pci_dev Date: Thu, 27 Oct 2005 23:55:08 +0200 Message-ID: References: <1130253727.4839.64.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cac94-1-81-57-151-96.fbx.proxad.net User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 21 Le Tue, 25 Oct 2005 10:22:07 -0500, Kylene Jo Hall a ?crit?: > This patch changes the nsc driver from a pci driver to a platform > driver. > +static int __init init_nsc(void) > { > int rc = 0; > int lo, hi; > int nscAddrBase = TPM_ADDR; > > - > - if (pci_enable_device(pci_dev)) > - return -EIO; > + driver_register(&nsc_drv); > > /* select PM channel 1 */ > tpm_write_index(nscAddrBase,NSC_LDN_INDEX, 0x12); Idem as tpm_atmel, you seem to write some bits before knowing if the port isn't used. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/