Messages in this thread | | | Subject | Re: [PATCH 1/2] Add NXP LPC32XX SPI driver | From | Paul Bolle <> | Date | Mon, 13 Jul 2015 14:19:08 +0200 |
| |
(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
| |