To use parallel port we need to allocate region using following function
struct resource *request_region(unsigned long first, unsigned long n, const char *name);
We can also check whether region available or not by this function
int check_region(unsigned long first, unsigned long n);