[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080411153125.GA2588@loki.buserror.net>
Date: Fri, 11 Apr 2008 10:31:25 -0500
From: Scott Wood <scottwood@...escale.com>
To: Andy Fleming <afleming@...escale.com>
Cc: netdev@...r.kernel.org, paul.gortmaker@...driver.com,
linuxppc-dev@...abs.org
Subject: Re: [PATCH v2.6.26] gianfar: Determine TBIPA value dynamically
On Thu, Apr 10, 2008 at 06:34:31PM -0500, Andy Fleming wrote:
>
> + /*
> + * This is mildly evil, but so is our hardware for doing this.
> + * Also, we have to cast back to struct gfar_mii because of
> + * definition weirdness done in gianfar.h.
> + */
> + enet_regs = (struct gfar __iomem *)
> + ((char *)regs - offsetof(struct gfar, gfar_mii_regs));
Can we use to_container() here?
-Scott
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists