Commit 474f0f0b authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

wishbone: include git version information

parent 2bab8ae1
ifneq ($(KERNELRELEASE),)
# When Makefile is invoked from kernel build system, define objects
ccflags-y += -DGIT_REVISION="$(shell git --git-dir=$(src)/../.git log -n1 --pretty='format:%h (%ci)')"
obj-m += pcie_wb.o wishbone.o spec_wb.o
# Only build wishbone-serial if it was missing
ifneq ($(CONFIG_USB_SERIAL_WISHBONE),m)
......
......@@ -807,6 +807,8 @@ static int __init wishbone_init(void)
{
int err;
dev_t overflow;
printk(KERN_NOTICE "wishbone: version " __stringify(GIT_REVISION) " loaded\n");
overflow = MKDEV(0, max_devices-1);
if (MINOR(overflow) != max_devices-1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment