mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge branch 'merge'
This commit is contained in:
commit
5274918855
501 changed files with 7840 additions and 4395 deletions
|
|
@ -27,7 +27,7 @@
|
|||
static int uninorth_rev;
|
||||
static int is_u3;
|
||||
|
||||
static char __devinitdata *aperture = NULL;
|
||||
static char *aperture = NULL;
|
||||
|
||||
static int uninorth_fetch_size(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3739,7 +3739,7 @@ static int stli_getbrdnr(void)
|
|||
* do is go probing around in the usual places hoping we can find it.
|
||||
*/
|
||||
|
||||
static int stli_findeisabrds(void)
|
||||
static int __init stli_findeisabrds(void)
|
||||
{
|
||||
struct stlibrd *brdp;
|
||||
unsigned int iobase, eid, i;
|
||||
|
|
@ -3935,7 +3935,7 @@ static struct stlibrd *stli_allocbrd(void)
|
|||
* can find.
|
||||
*/
|
||||
|
||||
static int stli_initbrds(void)
|
||||
static int __init stli_initbrds(void)
|
||||
{
|
||||
struct stlibrd *brdp, *nxtbrdp;
|
||||
struct stlconf conf;
|
||||
|
|
|
|||
|
|
@ -1795,12 +1795,15 @@ retry_open:
|
|||
}
|
||||
#endif
|
||||
if (device == MKDEV(TTYAUX_MAJOR, 1)) {
|
||||
driver = tty_driver_kref_get(console_device(&index));
|
||||
if (driver) {
|
||||
/* Don't let /dev/console block */
|
||||
filp->f_flags |= O_NONBLOCK;
|
||||
noctty = 1;
|
||||
goto got_driver;
|
||||
struct tty_driver *console_driver = console_device(&index);
|
||||
if (console_driver) {
|
||||
driver = tty_driver_kref_get(console_driver);
|
||||
if (driver) {
|
||||
/* Don't let /dev/console block */
|
||||
filp->f_flags |= O_NONBLOCK;
|
||||
noctty = 1;
|
||||
goto got_driver;
|
||||
}
|
||||
}
|
||||
mutex_unlock(&tty_mutex);
|
||||
return -ENODEV;
|
||||
|
|
|
|||
|
|
@ -626,7 +626,7 @@ static int __devinit hwicap_setup(struct device *dev, int id,
|
|||
if (!request_mem_region(drvdata->mem_start,
|
||||
drvdata->mem_size, DRIVER_NAME)) {
|
||||
dev_err(dev, "Couldn't lock memory region at %Lx\n",
|
||||
regs_res->start);
|
||||
(unsigned long long) regs_res->start);
|
||||
retval = -EBUSY;
|
||||
goto failed1;
|
||||
}
|
||||
|
|
@ -645,9 +645,10 @@ static int __devinit hwicap_setup(struct device *dev, int id,
|
|||
mutex_init(&drvdata->sem);
|
||||
drvdata->is_open = 0;
|
||||
|
||||
dev_info(dev, "ioremap %lx to %p with size %Lx\n",
|
||||
(unsigned long int)drvdata->mem_start,
|
||||
drvdata->base_address, drvdata->mem_size);
|
||||
dev_info(dev, "ioremap %llx to %p with size %llx\n",
|
||||
(unsigned long long) drvdata->mem_start,
|
||||
drvdata->base_address,
|
||||
(unsigned long long) drvdata->mem_size);
|
||||
|
||||
cdev_init(&drvdata->cdev, &hwicap_fops);
|
||||
drvdata->cdev.owner = THIS_MODULE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue