Re: [PATCH] add platform check to a couple sn2-only drivers

From: Christoph Hellwig <hch_at_infradead.org>
Date: 2006-07-29 00:50:22
On Fri, Jul 28, 2006 at 09:36:26AM -0500, Greg Edwards wrote:
> -	nasid_t event_nasid = ia64_sn_get_console_nasid();
> +	nasid_t event_nasid;
> +
> +	if (!ia64_platform_is("sn2"))
> +		return -ENODEV;
> +
> +	event_nasid = ia64_sn_get_console_nasid();

this one is okay and required.

>  static int __devinit
>  ioc4_init(void)
>  {
> +	if (!ia64_platform_is("sn2"))
> +		return -ENODEV;
> +

this one not.  The pci id matching will take care of things. 
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Jul 29 00:51:01 2006

This archive was generated by hypermail 2.1.8 : 2006-07-29 00:51:10 EST