index 262522c5084073183f8678bf0e6a7eb3a2629a21..267ada8bab8771150cfe9c1955847cf11a9bb167 100644 (file)
static int dev_open(struct inode *inode, struct file *file)
{
- if (cpu_is_omap447x())
+ if (gc_is_hw_present()) {
return 0;
- else
- return -1;
+ } else {
+ GCERR("gcx hardware is not present\n");
+ return -ENODEV;
+ }
}
static int dev_release(struct inode *inode, struct file *file)