• David Brownell's avatar
    SPI driver hotplug/coldplug fixes · fc3ba952
    David Brownell authored
    Update various SPI drivers so they properly support
    
      - coldplug through "modprobe $(cat /sys/devices/.../modalias)"
    
      - hotplug through "modprobe $(MODALIAS)"
    
    The basic rule for platform, SPI, and (new style) I2C drivers is just
    to make sure that modprobing the driver name works.  In this case, all
    the relevant drivers are platform drivers, and this patch either
    
      (a)	Changes the driver name, if no in-tree code would break;
    	this is simpler and thus preferable in the long term.
    
      (b)	Adds MODULE_ALIAS directives, when in-tree platforms declare
    	devices using the current driver name; less desirable.
    
    Most systems will link SPI controller drivers statically, but
    there's no point in being needlessly broken.
    Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
    Cc: Jean Delvare <khali@linux-fr.org>
    Acked-by: default avatarAndrei Konovalov <akonovalov@ru.mvista.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    fc3ba952
spi_mpc83xx.c 13.7 KB