]> git.baikalelectronics.ru Git - kernel.git/commit
zorro: Let the driver core handle device enumeration
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 16 Oct 2013 09:28:54 +0000 (11:28 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 26 Nov 2013 10:09:06 +0000 (11:09 +0100)
commit9801b7bfa53a7a36eb081750b01504f4197d5430
tree651419d2486f0add87182dbdf50060a1f497dc59
parent9724e63a5fec1bcbe005133e73a34f75d6bce85f
zorro: Let the driver core handle device enumeration

Filling in dev_name of the Zorro bus type and dev.id of each device allows
the driver core to enumerate devices, so we don't have to do that
ourselves.

This changes the names of devices in sysfs from "%02x" to "zorro%u".

Note that filling in dev.id is also needed to support MFD Zorro devices.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
drivers/zorro/zorro-driver.c
drivers/zorro/zorro.c