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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. 
-
: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux