Re: [PATCH 1/2] Add NXP LPC32XX SPI driver

From: Paul Bolle
Date: Mon Jul 13 2015 - 08:19:17 EST



(This hit my box with lkml mesages without lkml in the To: header. What
happened here?)

On zo, 2015-07-12 at 11:20 +0200, Martin Devera wrote:
> --- /dev/null
> +++ b/drivers/spi/spi-lpc32xx.c

> +#include <linux/io.h>
> +#include <linux/clk.h>
> +#include <linux/interrupt.h>
> +#include <linux/platform_device.h>
> +#include <linux/of_gpio.h>
> +#include <linux/spi/spi.h>

(I wonder which of these, indirectly, pulls in <linux/module.h>.)

> +#define DRIVER_NAME "spi-lpc32xx"

> +MODULE_ALIAS("platform:" DRIVER_NAME);

This alias seems only useful if there's a corresponding struct
platform_device. Ie, a struct platform_device with a .name of "spi
-lpc32xx", which will fire off a "MODALIAS=platform:spi-lpc32xx" uevent
when it's created.

I couldn't find that platform_device. Did I miss something? Or is there
another way this alias is useful?

Thanks,


Paul Bolle
--
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/