Jason Gunthorpe <[email protected]> wrote on 02/11/2016
02:48:10 PM:
>
> On Thu, Feb 11, 2016 at 02:10:56PM -0500, Stefan Berger wrote:
>
> > > Make sense. Don't change the names all the drivers would have to
be
> > > churn'd. tpm_chip_alloc, tpmm_chip_alloc.
> > >
> > That's right:
> > struct tpm_chip *tpmm_chip_alloc(struct device *dev,
> > const struct tpm_class_ops *ops)
> > {
> > struct tpm_chip *chip;
> > chip = tpm_chip_alloc(ops);
> > if (IS_ERR(chip))
> > return chip;
> > tpmm_chip_dev(chip, dev);
>
> No, just call the one devm_ function here (Based this work on top of
> Jarkko's patch that adds the devm function)
Ok.
So here's the new patch.
https://github.com/stefanberger/linux/commit/a1037db7fb239c46449b054bfd1a1d18b54179f3
I removed dev from parameter to tpm_chip_alloc. We don't need to provide
it here but it has to be a parameter to tpmm_chip_dev.
Stefan
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
tpmdd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel