Re: [PATCH 2.6-git 1/4] SPI core refresh: SPI core patch

From: Russell King
Date: Mon Dec 12 2005 - 10:52:58 EST


Only two comments this time.

On Mon, Dec 12, 2005 at 06:22:49PM +0300, Vitaly Wool wrote:
> +static int spi_bus_suspend(struct device * dev, pm_message_t message)
> +{
> + int ret = 0;
> +
> + if (dev && dev->driver && TO_SPI_DRIVER(dev->driver)->suspend ) {

dev will always be non-NULL here.

> +static int spi_bus_resume(struct device * dev)
> +{
> + int ret = 0;
> +
> + if (dev && dev->driver && TO_SPI_DRIVER(dev->driver)->suspend ) {

Ditto.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
-
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/