From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtps.tip.net.au (chilli.pcug.org.au [203.10.76.44]) by ozlabs.org (Postfix) with ESMTP id 41254DDDDB for ; Sun, 16 Dec 2007 01:09:32 +1100 (EST) Date: Sun, 16 Dec 2007 01:09:22 +1100 From: Stephen Rothwell To: Anton Vorontsov Subject: Re: [PATCH 2/3] [libata] pata_of_platform: OF-Platform PATA device driver Message-Id: <20071216010922.13ef21d0.sfr@canb.auug.org.au> In-Reply-To: <20071214182438.GB1017@localhost.localdomain> References: <20071214182109.GA858@localhost.localdomain> <20071214182438.GB1017@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sun__16_Dec_2007_01_09_22_+1100_WWFH_=wHbbmcA3im" Cc: Jeff Garzik , Arnd Bergmann , linux-ide@vger.kernel.org, linuxppc-dev@ozlabs.org, Paul Mundt , Olof Johansson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --Signature=_Sun__16_Dec_2007_01_09_22_+1100_WWFH_=wHbbmcA3im Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 14 Dec 2007 21:24:38 +0300 Anton Vorontsov wrote: > > + prop =3D (u32 *)of_get_property(dn, "reg-shift", NULL); This cast is unnecessary. > + if (prop) > + reg_shift =3D *prop; > + > + prop =3D (u32 *)of_get_property(dn, "pio-mode", NULL); So is this one. --=20 Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ --Signature=_Sun__16_Dec_2007_01_09_22_+1100_WWFH_=wHbbmcA3im Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHY+AYTgG2atn1QN8RAp21AJ9zGiZQPsyFbyuofbsH57ogiqT92ACaAgKx N6dQf7DMBkJo7F3DFGm8gMY= =4aw3 -----END PGP SIGNATURE----- --Signature=_Sun__16_Dec_2007_01_09_22_+1100_WWFH_=wHbbmcA3im--