<div dir="ltr">I suppose the response is yes but I would like to make sure:<div>Is below acceptable:</div><div>some_module_name.c:</div><div>#define DRIVER_NAME          "some-driver-name"<br></div><div>...</div><div>static struct platform_driver some_driver = {<br>    .driver = {<br>        .name = DRIVER_NAME,<br>        .of_match_table = of_match_ptr(some_of_match),<br>    },<br></div><div><br></div><div>vs</div><div><br></div><div>Makefile:</div><div>SRC := $(shell pwd)<br></div><div>obj-m += some_module_name.o<br>

some_module_name-m := directoryInWhichThereIsUsFile/

some_module_name.o

</div>all:<br>      $(MAKE) -C $(KERNEL_SRC) M=$(SRC)<br>modules_install:<br><div>$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install  </div><div> <br></div></div>