]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/pmount/files/mmc-fix.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / pmount / files / mmc-fix.patch
1 --- pmount-0.9.4/policy.c.orig  2005-09-22 23:11:29 +0200
2 +++ pmount-0.9.4/policy.c       2005-09-22 23:12:54 +0200
3 @@ -354,7 +354,7 @@
4  device_removable( const char* device )
5  {
6      struct sysfs_device *dev;
7 -    static char* hotplug_buses[] = { "usb", "ieee1394", NULL };
8 +    static char* hotplug_buses[] = { "usb", "ieee1394", "mmc", NULL };
9      int removable;
10      char blockdevpath[PATH_MAX];
11  
12 @@ -370,7 +370,7 @@
13      /* check whether device has "removable" attribute with value '1' */
14      removable = get_blockdev_attr( blockdevpath, "removable" );
15  
16 -    /* if not, fall back to bus scanning (regard USB and FireWire as removable) */
17 +    /* if not, fall back to bus scanning (regard USB, FireWire and MMC as removable) */
18      if( !removable )
19          removable = find_bus_ancestry( dev, hotplug_buses );
20      sysfs_close_device( dev );