mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 08:39:53 +02:00
jz4740: Remove mmc file from proc section
It does not make sense to keep it threre.
This commit is contained in:
parent
207ee3b6f5
commit
928b8ba548
@ -517,31 +517,6 @@ static int udc_read_proc(char *page, char **start, off_t off,
|
||||
return len;
|
||||
}
|
||||
|
||||
/*
|
||||
* MMC/SD hotplug
|
||||
*/
|
||||
|
||||
#ifndef MSC_HOTPLUG_PIN
|
||||
#define MSC_HOTPLUG_PIN 90
|
||||
#endif
|
||||
|
||||
static int mmc_read_proc (char *page, char **start, off_t off,
|
||||
int count, int *eof, void *data)
|
||||
{
|
||||
int len = 0;
|
||||
|
||||
#if defined(CONFIG_JZ4740_LYRA)
|
||||
if (!(__gpio_get_pin(MSC_HOTPLUG_PIN)))
|
||||
#else
|
||||
if (__gpio_get_pin(MSC_HOTPLUG_PIN))
|
||||
#endif
|
||||
len += sprintf (page+len, "REMOVE\n");
|
||||
else
|
||||
len += sprintf (page+len, "INSERT\n");
|
||||
|
||||
return len;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* IPU memory management (used by mplayer and other apps)
|
||||
*
|
||||
@ -832,14 +807,6 @@ static int __init jz_proc_init(void)
|
||||
res->data = NULL;
|
||||
}
|
||||
|
||||
/* mmc hotplug */
|
||||
res = create_proc_entry("mmc", 0644, proc_jz_root);
|
||||
if (res) {
|
||||
res->read_proc = mmc_read_proc;
|
||||
res->write_proc = NULL;
|
||||
res->data = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Reserve a 4MB memory for IPU on JZ4740.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user