mirror of
https://github.com/bashrc/LKMPG.git
synced 2018-06-11 03:06:54 +02:00
Move license macros
This commit is contained in:
@@ -16,8 +16,6 @@
|
|||||||
#include <linux/poll.h>
|
#include <linux/poll.h>
|
||||||
#include <linux/cdev.h>
|
#include <linux/cdev.h>
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prototypes - this would normally go in a .h file
|
* Prototypes - this would normally go in a .h file
|
||||||
*/
|
*/
|
||||||
@@ -181,3 +179,5 @@ static ssize_t device_write(struct file *filp,
|
|||||||
pr_alert("Sorry, this operation isn't supported.\n");
|
pr_alert("Sorry, this operation isn't supported.\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
|||||||
@@ -15,8 +15,6 @@
|
|||||||
#include <linux/poll.h>
|
#include <linux/poll.h>
|
||||||
#include <linux/cdev.h>
|
#include <linux/cdev.h>
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
|
||||||
|
|
||||||
#include "chardev.h"
|
#include "chardev.h"
|
||||||
#define SUCCESS 0
|
#define SUCCESS 0
|
||||||
#define DEVICE_NAME "char_dev"
|
#define DEVICE_NAME "char_dev"
|
||||||
@@ -287,3 +285,5 @@ void cleanup_module()
|
|||||||
*/
|
*/
|
||||||
unregister_chrdev(Major, DEVICE_NAME);
|
unregister_chrdev(Major, DEVICE_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
|||||||
Reference in New Issue
Block a user