Re: [PATCH]scsi: check the return value of device_create_file() in powertec.c

From: Russell King - ARM Linux
Date: Wed May 28 2008 - 10:42:47 EST


On Sun, May 25, 2008 at 09:18:25PM +0800, Qinghuang Feng wrote:
> This patch adds code to check the return value of device_create_file() called from powertecscsi_probe() in powertec.c

I'd prefer not to kill the driver if device_create_file fails. Just
arrange to print a warning instead (and remember not to unregister
the file if it wasn't created.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/