[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160323045535.GA5273@mwanda>
Date: Wed, 23 Mar 2016 07:55:35 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Moritz Fischer <moritz.fischer@...us.com>
Cc: arnd@...db.de, gregkh@...uxfoundation.org, arve@...roid.com,
riandrews@...roid.com, labbott@...hat.com, gioh.kim@....com,
sumit.semwal@...aro.org, sriram@...irs.net.in,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org
Subject: Re: [RFC 2/2] staging: android: ion: Add of_ion_device_get function
On Tue, Mar 22, 2016 at 03:33:51PM -0700, Moritz Fischer wrote:
> +struct ion_device *of_ion_device_get(struct device_node *node)
> +{
> + struct miscdevice *mdev = of_misc_get(node);
> +
> + if (IS_ERR(mdev))
> + return ERR_PTR(PTR_ERR(mdev));
Use ERR_CAST() for this.
regarda,
dan carpenter
Powered by blists - more mailing lists