After you build your module, you can copy it to /lib/modules:
Code:
cp MYMODULE.ko /lib/modules/$(uname -r)/kernel/drivers/MYDEVICE/
Ideally you should make your own directory under the drivers directory, but for testing, it can go pretty much anywhere in the /lib/modules/$(uname -r) hierarchy.
Then you need to run
depmod so that
modprobe can find the driver and its dependencies:
The '-a' flag makes it search /lib/modules and regenerate the modules database.
Then you should be ready to
modprobe.