lkml.org 
[lkml]   [2005]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 5 of 6] tpm: move nsc driver off pci_dev
Date
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/

\
 
 \ /
  Last update: 2005-10-28 00:04    [W:0.021 / U:1.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site